{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CSE1720_F11_Lecture06_Aggregation_Graphics_IV

CSE1720_F11_Lecture06_Aggregation_Graphics_IV -...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 1720 Lecture 6 Aggregation, Graphics IV Announcements: Lectures 7-10 assigned reading: Ch 9, JBA 2 Goals/ To do: How to create, copy , and delegate to aggregates example aggregates: Pixel , Picture , Graphics2D Create, modify , and iterate over collections Implement traversal over a collection Implement search within a collection Use services of Graphics2D for drawing Goals/ To understand: recognize aggregates from their APIs characterize and distinguish between two traversal techniques distinguish between aliases, shallow copies, and deep copies of aggregrates understand the characteristics of the “current settings” graphical model 3 Today’s Topic Issues with making a copy of an aggregate 4
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
The Aggregation Relationship A class C is said to be an aggregate if and only if one of its attributes is an object reference (say of type T ) Aggregation is the name of the relationship between C and T . an object of type C HAS-A object of type T the object of type T is called the aggregated part Key observation: it is possible that the object of type T can be may have a different lifetime of the object of type C We will demonstrate this next… (but to do this we must first explain the Stock and Investment classes) 5 The class Stock
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}