Question: Scooter - manufacturer: String - model: String -displacement: double -seat: Seat -maxSpeed: double +Scooter +Scooter(man: String, mod: String) +ge tManufacturer(): String +setManufacturer(man: String): void +ge
Scooter - manufacturer: String - model: String -displacement: double -seat: Seat -maxSpeed: double +Scooter +Scooter(man: String, mod: String) +ge tManufacturer(): String +setManufacturer(man: String): void +ge tModel(): String +se tModel(model: String): void +ge tDisplacement(): double +se tDisplacement(dis: double): void +ge tSeat(): Seat +setSeat( seat: Seat): void .+ge tMaxSpeed(): double Assume you are working in a main method of a class that has access to the Scooter class. Create a default instance of a Scooter named scoot1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
