x
Info
x
Warning
x
Danger
 / 
 / 
 / 
   In the constructor of Car how would you set

Question :    In the constructor of Car how would you set : 2043796

  1.    In the constructor of Car how would you set the Vehicle value of _x to 25 and _y to 50?

 

  1.    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.
  2.    How would you declare class CarHorn to be a subclass of class Horn?

  1.    How would you declare class Vehicle to be an abstract class?

 

  1.    How would you declare abstract method makeNoise in class vehicle?

Solution
5 (1 Ratings )

Solved
Computer Science 2 Years Ago 165 Views
This Question has Been Answered!
Unlimited Access Free
Explore More than 2 Million+
  • Textbook Solutions
  • Flashcards
  • Homework Answers
  • Documents
Signup for Instant Access!
Ask an Expert
Our Experts can answer your tough homework and study questions
154368 Computer Science Questions Answered!
Post a Question