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
Q42: You have determined a need for an
Q46: In a UML diagram, an interface implementation
Q52: In a UML diagram, inheritance is denoted
Q54: In a UML diagram, the relationship symbol
Q55: When designing classes, if you find classes
Q58: Which of the following code snippets denotes
Q60: In a UML diagram, the relationship symbol
Q63: Which of the following statements about class
Q67: When using CRC cards, UML diagrams should
Q78: How does a UML diagram denote a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents