Question 5 Flashcards

1
Q

What are the benefits of specialisation and generalisation

A

Any changes made to the generalisation will follow down to the specialisations and will only need to be carried out once

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

What is the difference between communication and sequence diagrams?

A

The two show the same information. The time ordering of messages is clear in a sequence diagram time passes by as you travel down the page. Some form of numbering is needed in a communication diagram to show the time ordering of messages and the numbering can become complicated.

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

What does GRASP stand for?

A

General responsibility assignment software patterns

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

Grasp expert

A

Assigns responsibility to a class that has the information necessary to fulfil that responsibility.

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

Grasp creator

A

To assign responsibility for creating objects

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

Law of Demeter

A

Each unit should have only limited knowledge about other units: only units “closely” related to the current unit.
Each unit should only talk to its friends; don’t talk to strangers.
Only talk to your immediate friends.
The fundamental notion is that a given object should assume as little as possible about the structure or properties of anything else (including its subcomponents), in accordance with the principle of “information hiding”.

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