Programming Assignment 6
Programming Assignment 6
CS1102-01 Programming 1
Muhammad Murindwa
23 May 2024
public class Truck implements TruckVehicle {
return make;
}
return model;
return year;
this.make = make;
this.model = model;
this.year = year;
return cargoCapacity;
}
public String getTransmissionType() {
return transmissionType;
this.cargoCapacity = capacity;
this.transmissionType = transmissionType;
return model;
return year;
this.make = make;
this.model = model;
this.year = year;
return numberOfWheels;
}
return motorcycleType;
this.numberOfWheels = wheels;
this.motorcycleType = type;
return model;
return year;
this.make = make;
this.year = year;
return fuelType;
this.numberOfDoors = doors;
this.fuelType = fuelType;
double getCargoCapacity();
String getTransmissionTypel();
int getNumberOfWheels();
String getMotorcycleType();
int getNumberOfDoors();
String getFuelType();
String getMakel();
String getModel();
int getYear();
Result: