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,
CSc: Software Development
Lablpm
Spring
Submlt the files into Lab Assignment under Assessments Deadline: today, end of class time hours
Given a Lobipm.jama program and partial Automobilejeve class, create a subclass called SUNJave with a super constructor that inlidalices the attributes of the Automoble dass as well as new attributes of the following types:
Int for number of passengers: numpass
double for carso space: cargaspe
Do not change anything in the Labipm.Java file. Within the Automobile class, expand the getinfol method to print the output shown below. titie author, pubilsher, publication date Next, create a subclass SUV.java that overrides the Automobile class' getinfo method and adds printing for the numposs, and corgospe.
The Labipm.Java program has these as data for constructing an Automobile and an SUN object
Porsche
ST
Subaru
Outback
the output from Antomabile class is:
The programmer is: Dr Johnson
Make: Porsche
Model: ST
year:
Number of Wheels:
the output from SUV class is:
The programmer is: Dr Johnson
Make: Subaru
Model: Outback
year:
Number of Wheels:
passengers:
cargo space:
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
