CSc3350: Software Development Lab1
Submit the files into Lab1 Assignment under Assessments
Given a [Link] program and partial [Link] class, create a sub-class called [Link]
with a super constructor that initializes the attributes of the Automobile class as well as new
attributes of the following types:
int for number of passengers: numpass
double for cargo space: cargospc
Do not change anything in the [Link] file. Within the Automobile class, expand the getinfo()
method to print the output shown below. (make, model, year, num wheels). Next, create a
subclass [Link] that overrides the Automobile class' getinfo() method and adds printing for
the numpass, and cargospc.
The [Link] program has these as data for constructing an Automobile and an SUV object.
Porsche
911 ST
2025
4
Subaru
Outback
2025
4
5
6.7
the output from Automobile class is:
The programmer is: Dr. Johnson
Make: Porsche
Model: 911 ST
Year: 2025
Number of Wheels: 4
the output from SUV class is:
The programmer is: Dr. Johnson
Make: Subaru
Model: Outback
Year: 2025
Number of Wheels: 4
Passengers: 5
Cargo space: 6.7
UPLOAD: your [Link] and [Link] file, then a screen shot of the VS code output as a
graphic file type: PNG, JPEG, PDF, WebP