Structural Design Pattern Design Patterns and Principles Chapter 2 Part 2 Flashcards

1
Q
  • are a subset of design patterns in software development that focus on the composition of classes or objects to form larger, more complex structures.
  • They help in organizing and managing relationships between objects to achieve greater flexibility, reusability, and maintainability in a software system
A

Structural design patterns

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

is a structural design pattern, it allows you to make two incompatible interfaces work together by creating a bridge between them.

A

Adapter Method

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

The intent of this pattern is to decouple abstraction from implementation so that the two can vary independently

A

BRIDGE

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

is a tree structure that contains Branches which are Folders as well as Leaf nodes which are Files

A

file system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • The intent of this pattern is to compose objects into tree structures to represent part-whole hierarchies.
  • lets clients treat individual objects and compositions of objects uniformly.
    -Compose objects into tree structures to represent part-whole hierarchies.
A

COMPOSITE

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

allows to add behavior to individual objects, either statically or dynamically, without affecting the behavior of other objects from the same class.

A

DECORATOR

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

is a structural design pattern that allows programs to efficiently share many objects by minimizing memory usage.

A

FLYWEIGHT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  • is a structural design pattern,it provide to create a substitute for an object, which can act as an intermediary or control access to the real object.
  • The intent of this pattern is to provide a “Placeholder” for an object to control references to it.
A

PROXY

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

is a class that provides a simple interface to a complex subsystem which contains lots of moving parts

A

facade

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