Design Patterns Intro Flashcards
1
Q
Design Patterns
A
A design pattern is a well-described solution to a common software problem.
2
Q
Benefits of using Design Patterns
A
- Design Patterns are already defined and provides industry standard approach to solve a recurring problem, so it saves time if we sensibly use the design pattern. 2. Using design patterns promotes reusability that leads to more robust and highly maintainable code. It helps in reducing total cost of ownership (TCO) of the software product. 3. Since design patterns are already defined, it makes our code easy to understand and debug. It leads to faster development and new members of team understand it easily.
3
Q
Three Types of Design Patterns
A
- Creational Patterns
- Structural Patterns
- Behavioral Patterns
4
Q
Creational Patterns
A
Used to construct objects such that
they can be decoupled from their implementing system
5
Q
Structural Patterns
A
Used to form large object structures
between many disparate objects.
6
Q
Behavioral Patterns
A
Used to manage algorithms,
relationships, and responsibilities between objects.
7
Q
Object Scope
A
Deals with object relationships that can be
changed at runtime.
8
Q
Class Scope
A
Deals with class relationships that can be changed at compile time.