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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
/**
*
*/
public class ProfilePersonne {
protected String nom;
protected String prenom;
protected String email;
protected String adressPostale;
protected String dateNaissance;
protected String profile;
protected String dateAjout;
protected String dateMaj;
public ProfilePersonne() {
this.nom = null;
this.prenom = null;
this.email = null;
this.adressPostale = null;
this.dateNaissance = null;
this.profile = null;
this.dateAjout = null;
this.dateMaj = null;
}
public ProfilePersonne(String nom, String prenom, String email, String adressPostale, String dateNaissance, String profile, String dateAjout, String dateMaj) {
this.nom = nom;
this.prenom = prenom;
this.email = email;
this.adressPostale = adressPostale;
this.dateNaissance = dateNaissance;
this.profile = profile;
this.dateAjout = dateAjout;
this.dateMaj = dateMaj;
}
protected void recherchePersonne() {
System.out.println(nom);
}
}
/**
*
*/
public class ProfilAdminsitrateur extends ProfilePersonne{
protected ProfilAdminsitrateur() {
super();
}
protected ProfilAdminsitrateur(String nom, String prenom, String email, String adressPostale, String dateNaissance, String profile, String dateAjout, String dateMaj) {
super(nom, prenom, email, adressPostale, dateNaissance, profile, dateAjout, dateMaj);
}
protected void AjouterPersonne() {
System.out.println("Ajouter une personne");
}
} |
Partager