AssignmentS2

This commit is contained in:
2025-02-25 14:46:29 +03:00
parent c6f3123b73
commit ebe1144e25
5 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
public class Vehicle {
protected int year;
protected String make;
public Vehicle (int year, String make) {
this.year = year;
this.make = make;
}
public void setMake(String make) {
this.make = make;
}
public void setYear(int year) {
this.year = year;
}
public String getMake() {
return make;
}
public int getYear() {
return year;
}
}