Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImmutabilityAndFactoryPattern/Cars Project - Code Failing #4

Open
jdcortez5 opened this issue Jul 19, 2020 · 1 comment
Open

ImmutabilityAndFactoryPattern/Cars Project - Code Failing #4

jdcortez5 opened this issue Jul 19, 2020 · 1 comment

Comments

@jdcortez5
Copy link

jdcortez5 commented Jul 19, 2020

There is two typos on the function below in the AbstractFactoryExample Module.

Private Function CreateSomeHondaCars(ByVal factory As ISimplerCarFactory) As Collection
'NOTE: this function doesn't know or care what specific ISimplerCarFactory it's working with.
    Dim cars As Collection
    Set cars = New Collection
    cars.Add factory.Create("Civic")
    cars.Add factory.Create("Accord")
    cars.Add factory.Create("CRV")
    Set CreateSomeCars = Collection 'should read Set CreateSomeHondaCars = cars
End Function
@retailcoder
Copy link
Member

Thanks for the heads up! I won't be able to do this for a few days, feel free to PR in the meantime!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants