Question: Consider the following code snippet: public class Motorcycle extends Vehicle { d o t s } Which of the following statements correctly describes the relationship
Consider the following code snippet:
public class Motorcycle extends Vehicle
Which of the following statements correctly describes the relationship between the Motorcycle and vehicle classes?
exhibits the isa relationship with regard to vehicle.
Motorcycle exhibits the hasa relationship with regards to vehicle.
Vehicle exhibits the hasa relationship with regards to Motorcycle.
Vehicle exhibits the isa relationship with regards to Motorcycle.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
