class MotorVehicle {
String make;
String model;
int year;
int max_speed;
int weight
float price;
int num_passengers;
int num_wheels;
}
The MotorVehicle has all the characteristics shared by motorcycles and cars, but it leaves the number of wheels unspecified, and it doesn't have a num_doors variable since not all motor vehicles have doors.