Question: i need the full code PROBLEM Design and implement a program that manages vehicles (cars, trucks, buses, etc.). The design should use concepts of object-oriented

i need the full code

i need the full code PROBLEM Design and implement a program thatmanages vehicles (cars, trucks, buses, etc.). The design should use concepts ofobject-oriented programming (for example, inheritance and polymorphism). We provide an App.java fileto test your code. The App.java include a main method that produce

PROBLEM Design and implement a program that manages vehicles (cars, trucks, buses, etc.). The design should use concepts of object-oriented programming (for example, inheritance and polymorphism). We provide an App.java file to test your code. The App.java include a main method that produce the following: License \# : FG1000 Vehicle: Honda Civic Price : 100000.0 Number of doors: 4 License \# : AY3000 Vehicle: Bugatti Veyron Price : 300000.0 Number of doors: 2 License \# : BUS123 Vehicle: Toyota Bus Price : 5000000.0 Number of seats: 35 BUS-------->BUS License \# : TRK321 Vehicle: Hyundai T1A Price : 300000.0 Maximum load (Ton): 10.0 Maximum load (Ton): 10.0 TRUCK---_-->TRUCK You must not modify the main method. System.out.println(veh);veh.drive();} STEP ONE: IMPLEMENT VEHICLE First, start by creating a class called Vehicle. The Vehicle class has instance variables that store basic information about each vehicle and a method drive() that prints a text indicating a vehicle is driving. You can find below the class Vehicle. However, the code that we provide is missing the necessary implementation. public abstract class Vehicle \{ String licenseNumber; String make; String model; double price; public String toString() \{ return "License \# : " + getLicenseNumber() + " Vehicle: " +getMake()+" + getModel() + " Price : " + getPrice(); \} Create the necessary classes for different types of vehicles (car, bus, truck) and fill in the body of the classes with the appropriate code. The code that we provide is missing necessary implementation. Make sure the main method is working as expected. public class Bus \{ int seats; public class Truck \{ double maximumLoad; public class Car \{ int doors; \} SUBMISSION INSTRUCTIONS Submit only java files. Do not upload compressed files. When setting up your project, do not create packages and do not include any code for packages. You can simply put all your files in the src folder. No packages are needed. I will not grade any submission that won't follow these instructions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!