Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 +2hours
Given a Lobipm.jama program and partial Automobile-jeve class, create a sub-class 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
911 ST
2023
4
Subaru
Outback
2022
45
6.7
the output from Antomabile class is:
The programmer is: Dr. Johnson
Make: 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 Wheels: 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Power Bi And Azure Integrating Cloud Analytics For Scalable Solutions

Authors: Kiet Huynh

1st Edition

B0CMHKB85L, 979-8868959943

More Books

Students also viewed these Databases questions