Multiple Choice
Consider the following code snippet:
Public class SailBoat extends Vessel
{
Private Engine[] engines;
Private Sail mainsail;
) . .
}
Which of the following statements is NOT correct?
A) SailBoat inherits from Vessel.
B) Sail depends on Sailboat.
C) Sailboat aggregates Engine.
D) SailBoat aggregates Sail.
Correct Answer:

Verified
Correct Answer:
Verified
Q21: _ is often described as the has-a
Q27: Consider the following code snippet:<br>Public class SailBoat
Q28: Which statement correctly describes the class relationship
Q35: Given the following diagram showing class relationships:
Q37: How does a UML diagram denote a
Q53: Which of the following questions should you
Q58: Parallel arrays are _.<br>A) Two or more
Q68: During the implementation phase, which of the
Q79: The final step of the design phase
Q81: Which of the following code snippets denotes