Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Create two instances each of MountainBike and RoadBike. Display the value of bicycleCount on the console. Change the Bicycle class to be an abstract...

Create two instances each of MountainBike and RoadBike.

  • Display the value of bicycleCount on the console.
  • Change the Bicycle class to be an abstract class.
  • Add a private variable of type integer named bicycleCount, and initialize this variable to 0.
  • Change the Bicycle constructor to add 1 to the bicycleCount each time a new object of type Bicycle is created.
  • Add a public getter method to return the current value of bicycleCount.
  • Derive two classes from Bicycle: MountainBike and RoadBike. To the MountainBike class, add the private variables tireTread (String) and mountainRating (int). To the RoadBike class, add the private variable maximumMPH (int
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question