Question: CSc 3 3 5 0 : Software Development Lablpm Spring 2 0 2 4 Submlt the files into Lab 1 Assignment under Assessments Deadline: today,

CSc3350: Software Development
Lablpm
Spring 2024
Submlt the files into Lab1 Assignment under Assessments Deadline: today, end of class time +2 hours
Given a Lablpm.java program and partial Nutomobile.jevo class, create a sub-class called SUVjava with a super constructor that initializes the attributes of the Automobile dass as well as new attributes of the following types:
int for number of passengers: numpass
double for cargo space: corgospc
Do not change anything in the Lab1pm.java file. Within the Automoblle class, expand the gebinfor) method to print the output shown below. (title, author, publisher, publication date). Next, create a subclass SUV.java that overrides the Automobile class' getinfo() method and adds printing for the numpass, and cargospc.
The Lablpm.java program has these as data for constructing an Automobile and an suV object.
Porsche
911 ST
2023
Subaru
Outback
2022
6.7
the output from Automobile class is:
The programmer is: Dr. Johnson
Nake: Porsche
Model: 911 ST
year: 2023
Number of Wheels: 4
the output from SUV class is:
The programmer is: Dr. Johnson
Make: Subaru
Model: Outback
year: 2022
Number of Whee1s: 4
passengers: 5
cargo space: 6.7
UPLOAD: your Automobile.java and SUV.java file, then a screen shot of the VS code output as a graphic file type: PNG, JPEG, PDF, WebP
MacBook Air
 CSc3350: Software Development Lablpm Spring 2024 Submlt the files into Lab1

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!