1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
frozen [14]
3 years ago
6

Write your own SportsCar class that extends the Car class. This new class should have the following unique protected instance va

riables: myColor, MyEngine that stores its engine size in liters, mySuspension - e.g., firm, soft, touring, etc., and myTires - e.g., regular, wide, low profile, etc. To utilize this SportsCar class, add the following lines to the Driver class. Note that the last four parameters (
Computers and Technology
1 answer:
Rus_ich [418]3 years ago
8 0

Answer:

class SportsCar extends Car {

   

   protected String myColor;

   protected float myEngine;

   protected String mySuspension;

   protected String myTires;    

}

Explanation:

With the provided information the class can be written as above.

Create a class called SportsCar. Since it extends from the Car, you need to type extends Car after the class name. This implies that it is a subclass of the Car class.

Then, declare its protected variables:

a string called myColor that will hold the color,

a float myEngine that will hold the engine size

a string mySuspension that will hold the suspension type

a string myTires that will hold the tire type

You might be interested in
If more than one symbol is located immediately adjacent to another, it usually means that a multi gang box for multiple wiring d
Zielflug [23.3K]
It usually means that a multi gang box for multiple wiring devices and A SINGLE COVER are to be installed. This sign is necessary in order to ensure that the electrician during installation used the right quality and size of box to enclose the number of wires and devices required, taking into consideration the specifications about the number of wires and devices permitted in a common box. 
6 0
4 years ago
Your friends parents are worried about going over their budget for the month. Which explains would you suggest is not a need.
lakkis [162]
C. Cable survive
It's not a need. But you need food, a house, and a car most the time.
3 0
4 years ago
Read 2 more answers
Ifdjgidfpojcjdizchnllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllsssssssssssssssssssssssssss
STatiana [176]

Answer:

HELLO :}

Explanation:

7 0
4 years ago
Read 2 more answers
After an extruded feature has been created, you can always go back and edit the feature. When you edit an existing extrude featu
Pani-rosa [81]

Answer:

After an extruded feature has been created, you can always go back and edit the feature. When you edit an existing extrude feature, <u>the shape of the sketch profile</u> cannot be changed from the Extrude Property Manager.

<u>Extrude PropertyManager</u>

A tool that is used to draw different sketch. The sketches are related to different fields. Extrude property manager is used to edit the sketch, delete some objects form the sketch but we cannot edit the shape of the sketch profile.

<em>In this tool we can edit every thing but cannot edit the shape of the sketch profile.</em>

3 0
3 years ago
The __________ contains the basic elements of a user's program and can be generated directly from a compiled object file
icang [17]

Answer:

costumes

Explanation:

it will make a good impression and will make sure to get the same thing as you can see

3 0
2 years ago
Other questions:
  • Danny is editing the text content of a single page on a website he created a year ago. What part of the tag would he have to upd
    11·1 answer
  • In an excel table, which of the following represents a column of data?
    8·1 answer
  • What is malware short for?
    13·2 answers
  • What are some options available in the Spelling and Grammar Checker in word?
    6·1 answer
  • A digital native is a person who has been exposed to technology at a(n) ___________ and is comfortable using it.a. old ageb. sch
    14·1 answer
  • You use the ____ button if you want to specify subtotals or other calculations within the wizard.
    12·1 answer
  • If a file you are opening for appending does not exist, the operating system will detect the missing file and terminate the oper
    14·1 answer
  • To see the formula in a cell, look at the___
    5·1 answer
  • What triggers a LinkedIn account ban?
    6·1 answer
  • A ________ implementation involves considerable modifications to the erp software
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!