DEV/DEV2.1/TP6:Polymorphisme/VehiculeAbstract.java

18 lines
311 B
Java
Raw Normal View History

2023-03-27 11:28:45 +02:00
public abstract class VehiculeAbstract implements Vehicule{
private int nbRoues;
private String sorte;
public VehiculeAbstract(int nbRoues, String sorte){
this.nbRoues=nbRoues;
this.sorte=sorte;
}
public int nbRoues(){
return nbRoues;
}
public String sorte(){
return sorte;
}
}