23 lines
511 B
Java
23 lines
511 B
Java
package PackAdh;
|
|
|
|
public class Gerant {
|
|
|
|
/**
|
|
* @param args
|
|
*/
|
|
public static void main(String[] args) {
|
|
// TODO Auto-generated method stub
|
|
Adherent adh1 = new Adherent(1,"DUPONT","Paris",1980);
|
|
Adherent adh2 = new Adherent(2,"MEYER","Strasbourg",1955);
|
|
Adherent adh3 = new Adherent(3,"LEGWENN","Brest",1960);
|
|
|
|
adh1.cotiser(45);
|
|
adh2.cotiser(30);
|
|
System.out.println(adh2.toString());
|
|
adh3.cotiser(40);
|
|
adh2.cotiser(15);
|
|
System.out.println(adh2.toString());
|
|
}
|
|
|
|
}
|