Solved

Consider the Following Code Snippet

Question 31

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions