Create Two Additional Classes First New Class Trackbike Sub Class Bicyle Additional Attrib Q37258223

Create two additional classes. The first new class is TrackBike.It is a sub class of Bicyle. It has an additional attribute ofweight. Weight is a double and must be in the TrackBikeconstructor. The TrackBike class will also have get and set methodsfor the weight.The second new class is StreetBike. It also is a subclass of Bicyle. It has an additional attribute of capacity.Capacity is an integer and must be in the StreetBike constructor.The StreetBike class will also have get and set methods for thecapacity.Update the Test class to include creating a TrackBike anda StreetBike. Change their gears and apply the

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.