Design Patterns Intro Flashcards

1
Q

Design Patterns

A

A design pattern is a well-described solution to a common software problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Benefits of using Design Patterns

A
  1. 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Three Types of Design Patterns

A
  1. Creational Patterns
  2. Structural Patterns
  3. Behavioral Patterns
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Creational Patterns

A

Used to construct objects such that

they can be decoupled from their implementing system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Structural Patterns

A

Used to form large object structures

between many disparate objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Behavioral Patterns

A

Used to manage algorithms,

relationships, and responsibilities between objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Object Scope

A

Deals with object relationships that can be

changed at runtime.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Class Scope

A
Deals with class relationships that can be changed
at compile time.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly