19 lines
286 B
Java
19 lines
286 B
Java
public class Truck{
|
|
|
|
public Truck(int axles, int weight){
|
|
this.axles=axles;
|
|
this.weight=weight;
|
|
}
|
|
|
|
public int getAxles(){
|
|
return axles;
|
|
}
|
|
|
|
public int getWeight(){
|
|
return weight;
|
|
}
|
|
|
|
private int axles;
|
|
private int weight;
|
|
}
|