Answer:
class SportsCar extends Car {
protected String myColor;
protected float myEngine;
protected String mySuspension;
protected String myTires;
}
Step-by-step 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