AssigmentS2

This commit is contained in:
2025-03-01 01:32:49 +03:00
parent ebe1144e25
commit d3ac74eb64
3 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
public class Motorcycle extends Vehicle {
protected String engineType;
public Motorcycle () {
super(2012,"Yamaha");
}
public void setEngineType(String engineType) {
this.engineType = engineType;
}
public String getEngineType() {
return engineType;
}
}