What are design patterns and principles? Design Patterns vs Design Principles
Design Principles are general guidelines that can guide your class structure and relationships. On the other hand, Design Patterns are proven solutions that solve commonly reoccurring problems.
What are the 4 basic categories for design patterns?
- Abstract Factory. Allows the creation of objects without specifying their concrete type.
- Builder. Uses to create complex objects.
- Factory Method. Creates objects without specifying the exact class to create.
- Prototype. Creates a new object from an existing object.
What are the 3 most important categories of pattern information?
- Creational: These patterns are designed for class instantiation.
- Structural: These patterns are designed with regard to a class’s structure and composition.
- Behavioral: These patterns are designed depending on how one class communicates with others.
What are the 3 types of patterns?
- Creational. These design patterns are all about class instantiation or object creation.
- Structural. These design patterns are about organizing different classes and objects to form larger structures and provide new functionality.