3.3.1.2 Design. Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Outline the design patterns.

A

Creational
Structural
Behavioural

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

Define Creational design patterns.

A

Provide solutions to instantiate an object in the best way possible for specific situations.

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

Outline an example of a Creational design pattern.

A

Singleton Pattern:

Restricts the instantiation of a class and ensures that only one instance of the class exists in the java virtual machine.

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

Define Structural design patterns

A

Structural patterns provide different ways to create a class structure, for example using inheritance and composition to create a large object from small objects.

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

Outline an example of the Structural design pattern.

A

Adapter pattern:
Used so that two unrelated interfaces can work together. The object that joins these unrelated interfaces is called an adapter. Think of a mobile charger, working as an adapter between the charging socket and the wall socket.

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

Define Behavioural design patterns.

A

Provide a solution for the better interaction between objects and how to provide lose coupling and flexibility to extend easily.

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

When implementing design, what must we be aware of?

A

That before constructing a solution, the solution should be designed and specified, for example planning data structures for the data model, designing algorithms, designing an appropriate modular structure for the solution and designing the human user interface.

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