In the constructor of Car how would you set : 2043796
- In the constructor of Car how would you set the Vehicle value of _x to 25 and _y to 50?
- In the setLocation method of Truck how would you set the _cabWheel's location such that the _x value is 10 more than the Vehicle _x and the _y of the Wheel is 45 more than the Vehicle's _y.
- How would you declare class CarHorn to be a subclass of class Horn?
- How would you declare class Vehicle to be an abstract class?
- How would you declare abstract method makeNoise in class vehicle?
5 (1 Ratings )
SolvedComputer Science 3 Years Ago 223 Views