Karteikarten
SCC 204 - Basic Object Oriented Design
Karten in diesem Stapel (18)
- 1What are the three main kinds of diagram?Static diagram
Dynamic diagram
Physical diagram - 2What does the static diagram describe?Static diagrams describe the logical structure of software elements by depicting, classes, objects, and data structures and the relationships between them
- 3What does dynamic diagrams show?Dynamic diagrams show how software entities change during execution by depicting the flow of execution, or the way entities change state.
- 4What does physical diagram show?Physical diagrams show the unchanging physical structure of software entities by depicting physical entities such as source
files, libraries, binary files, data files their relationships - 5What happens if an interface is realized(implemented by a class)?The class promises to deliver the structure and behaviour of the interface to the rest of the program
– The class that implements the interface provides a public interface (façade) that conforms to the interface specification - 6In the current version UML, an interface can declare attributes but what it cannot do?In the current version UML, an interface can declare attributes but cannot be instantiated
- 7In java, an interface can contain attributes but they must be what?In Java an interface can contain attributes but they must be constants (defined by static and final modifiers)
- 8Classes have two kinds of relationships with interfaces? What are they?A class provides an interface if it implements that interface
– A class requires an interface if it needs that interface in order to work - 9Interfaces are a powerful tool in reducing what?Interfaces are a powerful tool in reducing dependencies
- 10Programming with interfaces allows client objects to be unaware of what?• the specific classes of objects they use,
• and the classes that actually implement these interfaces - 11One of the most important principles of reusable, maintainable, and scalable object-oriented design is what?One of the most important principles of reusable, maintainable, and scalable object-oriented design is:
‘Program to an interface, not an implementation’ (Gamma et al. 1995) - 12What are associations by default?Associations are, by default, bidirectional
- 13What do bi-directional relationships introduce as opposed to uni-directional?Bidirectional relationships introduce mutual dependencies
Unidirectional relationships are simpler and reduce dependencies among classes - 14Within a grammatical approach, what are objects and attributes?Object and attributes are nouns
- 15Within a grammatical approach, what are operations and services?Operations and services are verbs.
- 16If an object is a subclass of another object, what is this relationship known as?Is the object a subclass of another object? Is so the relationship is generalization (i.e. inheritance)
- 17If an object is part of another object, this is what is this relationship known as?the relationship is aggregation.
- 18—
Informationen
- Beschreibung
- Karteikarten am SCC 204 - Basic Object Oriented Design, erstellt von Ayo Olutobi am 29/04/2017.
- Erstellt von
- Ayo Olutobi
- Aufrufe
- 0
- Bewertung