You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. Happy New Year. Checking the code I come up with something you can consider for the Inheritance-Challenge: You want to build a car using the “Car” class, but this can have different representations (variations according to its brand, model, etc.) as can be seen in the “Outlander” class where this is a car with certain special characteristics that inherits from "Car". Since to build a car you can use a standard creation process with variations depending on the specific type of vehicle you want to create and in order to avoid creating n classes for n representations through inheritance or calls to constructors with many parameters (scent code), the use of the Builder pattern is proposed to use the same construction process (code) to create different representations of the various cars in a more flexible way.
The text was updated successfully, but these errors were encountered:
Hello. Happy New Year. Checking the code I come up with something you can consider for the Inheritance-Challenge: You want to build a car using the “Car” class, but this can have different representations (variations according to its brand, model, etc.) as can be seen in the “Outlander” class where this is a car with certain special characteristics that inherits from "Car". Since to build a car you can use a standard creation process with variations depending on the specific type of vehicle you want to create and in order to avoid creating n classes for n representations through inheritance or calls to constructors with many parameters (scent code), the use of the Builder pattern is proposed to use the same construction process (code) to create different representations of the various cars in a more flexible way.
The text was updated successfully, but these errors were encountered: