public void client_get()
{ public String getNom()
{ return (this.Desc) ;
}
public String getDesc()
{ return(this.Desc);
}
public String getTél()
{ return(this.Tél);
}
public String getNum_Tél()
{ return(this.Num_Tél);
}
public String getNum_Tun()
{ return(this.Num_Tun);
}
public String getadresse()
{ return(this.adresse);
}
}
}
Svp je reformule ma question. Dans une classe c'est possible de mettre une méthode dans une autre comme cet exemple (qui génére des bugs)
et on obtient alors l'appel de la méthode getNom() ex :
Client C1 = new Client();
ch = C1.client_get().getNom() (comment effectuer cette notion)