Developpement/23DEV1.1/TPS2/TP01/Polymorphisme/Véhicule/Moto.java

16 lines
218 B
Java
Raw Permalink Normal View History

2024-12-09 11:53:11 +01:00
import javax.swing.JOptionPane;
public class Moto extends TestVehicules implements Vehicule {
@Override
public String sorte()
{
return "Moto";
}
@Override
public int nbRoues()
{
return 2;
}
}