0

public class InfosPatient {
private Identity[] identities;
private String birthDate="";
private String sexe="";
private Adresse[] adresse;
private NumeroTelephone[] telephones;
private String numeroCafat="",numeroMed="";}

public class Identity {
private String prenom,nom;
private TypeNom typeNom;

public Identity getIdentity(TypeNom typeNom) {
    for (Identity identity:this.identities) {
        if (identity.getTypeNom() == typeNom){
            return identity;
        }
    }
    return null;
}
|

1

1

|