If a Fleet object is constructed, how many new objects will there be?

Answer:

Three — the Fleet object itself and the two Car objects it refers to.

Picture of a Fleet

The picture shows that objects of class Fleet contain two references to Car objects.

picture of a fleet

In these notes, class definitions are shown as clouds and objects are shown as rectangles. (In official UML both are shown as rectangles.)

QUESTION 8:

How (in general) would you calculate the average miles per gallon of a fleet of cars?