Question: Consider the following code snippetr public class Vessel public void setvesselattributes ( ) 1 } 3 public class Speedboat extends Vessel I public void setvesselattributes
Consider the following code snippetr
public class Vessel
public void setvesselattributes
public class Speedboat extends Vessel
I
public void setvesselattributes
Which of the following statements is com? The subclass is shadowing a superclass method.
The cubclass is overioading a superclass method,
The srbolass is ovemiling a superclass method.
The srbclass is defining its own distinct method,
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
