Final answer:
To complete the task, you need to create the Automobile class with fields and methods as described. Then, create the Turbo Automobile class, which extends the Automobile class and adds additional fields and methods. Finally, create the Main Class to demonstrate and display the objects.
Step-by-step explanation:
Automobile Class-
To create the Automobile class, you will need to define four fields: Manufacturer, Model, Color, and Price. Additionally, you need to create accessor and mutator methods for all the fields. The class should also have a default constructor that sets the values to TATA, PUNCH, BLACK, and $8,000. Another parameterized constructor should calculate the price based on the values passed to it, adding different amounts depending on the color and manufacturer. Finally, you should implement a method to display all four fields.
Turbo Automobile Class-
The Turbo Automobile class is a child class of the Automobile class and includes three additional fields: Maximum Speed, Maximum Occupants, and Manual Transmission (as a Boolean field). The class should also have a method to calculate the total price, considering an additional fee for Manual Transmission and an emissions TURBO fee of 10%. Finally, implement a method to display all seven fields nicely on the screen.
Main Class-
The Main Class should demonstrate and display the objects. Create two objects of the Automobile class and two objects of the Turbo Automobile class. Display all their data fields.