Multiple Choice
Consider the following code snippet:
Public class Motorcycle extends Vehicle
{
Private Tire[] tires;
Private Engine anEngine;
) . .
}
Which of the following statements describing relationships between the Motorcycle, Tire, Engine and Vehicle classes is NOT correct?
A) Motorcycle exhibits the has-a relationship with regards to Tire.
B) Motorcycle exhibits the is-a relationship with regard to Vehicle.
C) Vehicle exhibits the has-a relationship with regards to Motorcycle.
D) Motorcycle exhibits the knows-about relationship with regards to Engine.
Correct Answer:

Verified
Correct Answer:
Verified
Q47: Which of the following would be an
Q57: The dependency relationship is sometimes referred to
Q64: Which of the following code snippets denotes
Q68: Which of the following is NOT accomplished
Q69: Which statement correctly describes the class relationship
Q76: If many classes of a program depend
Q84: Which of the following code snippets denotes
Q99: In general, you need _ when an
Q102: In a UML diagram, aggregation is denoted
Q104: You have determined a need for an