20 lines
247 B
Java
20 lines
247 B
Java
public class Moto implements Vehicule{
|
|
|
|
int nbRoue;
|
|
String sorte;
|
|
|
|
public Moto(){
|
|
this.nbRoue=2;
|
|
this.sorte="Moto";
|
|
}
|
|
|
|
@Override
|
|
public int nbRoues(){
|
|
return this.nbRoue;
|
|
}
|
|
|
|
@Override
|
|
public String sorte(){
|
|
return this.sorte;
|
|
}
|
|
} |