SCJA-drills-chap06 Matching
What is the inner/container relationship between objects related by a composition association? |
When two objects have a composition association, the containing object often requires the inner object. |
When are one-to-many relationships possible? |
One-to-many relationships are possible with both composition and association. |
What happens to objects that have a aggregation association if the relationship is lost? |
Two objects that have an aggregation association will logically make sense if the relationship is lost. |
Give a characteristic of one-to-many relationships, specific to storage of objects? |
In a one-to-many relationship, the inner object is stored in an array or collection. |
What is particular to one-to-one relationships, in regard to references? |
One-to-one relationships have one object that contains a reference to another object. |
How may relationships be navigated? |
Relationships may be able to navigate bidirectional or unidirectional. |
What happens when a relationship is created, object-oriented-wise? |
A relationship is created when an object contains a reference to another object, often through an instance variable. |
When is a temporary association relationship created? |
A temporary association relationship is created when a return value, method parameter, or local variable is used. |
Give a characteristic of compostion, specific to object creation/passed? |
In a composition, the inner object is normally created in the containing object. |
Which role are getter methods playing in regard to navigation? |
Getter methods are often used to navigate an inner object. |
0:00