educative.io

Educative

Abstract Factory and Factory design pattern

For the parking lot design, you guys mentioned that the design patterns that can be used to design the parking lot system are:

  • Singleton design pattern
  • Abstract Factory design pattern
  • Factory design pattern

It was mentioned that the singleton class was the parking lot system itself, but it was never explained which ones are the Abstract Factory or the Factory classes so I could grasp even better these designs patterns. It would make that lesson even better if you pointed out which of the classes comply with these design patterns, and hopefully future examples do explain the classes that fulfill the design patterns that are attempting to teach.

Hi @Jose_Abel_Ramirez_Fr,

In the “Getting Ready” lesson, we have just mentioned the possible design patterns that can be used to design the problem. In the “Class Diagram” lesson, we explain each class one by one and also explain where and which type of design pattern can be used to design the problem.

Happy Learning :slight_smile: