cours0708/workspace/Adherent/PackAdh/Gerant.java

23 lines
511 B
Java
Raw Permalink Normal View History

2008-11-25 21:11:16 +00:00
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());
}
}