Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abstract class Vehicule {
- private String Marque ;
- private String Modele ;
- private String Immatriculation ;
- public Vehicule(String Marque, String Modele, String Immatriculation) {
- this.Marque = Marque ;
- this.Modele = Modele ;
- this.Immatriculation = Immatriculation ;
- }
- public String getMarque() {
- return this.Marque ;
- }
- public String getModele() {
- return this.Modele ;
- }
- public String getImmatriculation() {
- return this.Immatriculation ;
- }
- public String toString() {
- return Marque+"-"+Modele+" : "+Immatriculation ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement