SCJA-drills-chap06
Help!
|
|
||||
---|---|---|---|---|---|
show | Composition and association are both general descriptions for object-to-object relationships.
🗑
|
||||
show | A relationship is created when an object contains a reference to another object, often through an instance variable.
🗑
|
||||
show | Direct association is a “has-a” relationship, is a weak relationship, has no life cycle responsibilities and tends to be the default relationship if no other relationshipseems to fit.
🗑
|
||||
show | Two objects that have a direct association will logically make sense if the relationship is lost.
🗑
|
||||
Give four properties of composition association. | show 🗑
|
||||
What happens to objects that have a composition association if the relationship is lost? | show 🗑
|
||||
show | When two objects have a composition association, the containing object often requires the inner object.
🗑
|
||||
show | Aggregation association is a “part-of” relationship, is a weak relationship and has no life cycle responsibilities.
🗑
|
||||
show | Two objects that have an aggregation association will logically make sense if the relationship is lost.
🗑
|
||||
Give three properties of a temporary association. | show 🗑
|
||||
When is a temporary association relationship created? | show 🗑
|
||||
When is a one-to-one relationship possible? | show 🗑
|
||||
show | One-to-one relationships have one object that contains a reference to another object.
🗑
|
||||
When are one-to-many relationships possible? | show 🗑
|
||||
show | One-to-many relationships are one object that contains a reference to an array or collection of similar objects.
🗑
|
||||
show | Many-to-many relationships are possible only with association.
🗑
|
||||
show | Many-to-many relationships have many similar objects that contain a reference to the same array or collection of objects.
🗑
|
||||
show | Association navigation is a term used to describe the ability to access an object that is contained in another object.
🗑
|
||||
How may relationships be navigated? | show 🗑
|
||||
Which role are getter methods playing in regard to navigation? | show 🗑
|
||||
show | In an association, the inner object normally is not created in the containing object but is instead passed to it as a method argument.
🗑
|
||||
show | In a composition, the inner object is normally created in the containing object.
🗑
|
||||
Give a characteristic of one-to-many relationships, specific to storage of objects? | show 🗑
|
||||
show | A many-to-many relationship is when objects in an array or collection each contain a reference to another array or collection. Can only exist for associations.
🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
Created by:
fd99
Popular Computers sets