If a Fleet object is constructed, how many new objects
will there be?
Three — the Fleet object itself and the two Car objects
it refers to.
Fleet
The picture shows that objects of class Fleet contain two
references to Car objects.
In these notes, class definitions are shown as clouds and objects are shown as rectangles. (In official UML both are shown as rectangles.)
How (in general) would you calculate the average miles per gallon of a fleet of cars?