1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| import java.sql.*;
public class Vehicule {
private int idVehicule;
private String numVehicule;
private String Immatriculation;
private String Designation;
public Vehicule() throws Exception {
// Code pour insertion, modifiacation, suppression, ou affichage d'une requête
}
public int getIdVehicule() {
return this.idVehicule;
}
public String getNumVehicule() {
return this.numVehicule;
}
public String getImmatriculation() {
return this.Immatriculation;
}
public String getDesignation() {
return this.Designation;
}
public String toString() {
return this.idVehicule + " - " +
this.numVehicule + ", de marque " +
this.Immatriculation + " et de prix " + this.Designation;
}
} |
Partager