67 lines
1.6 KiB
Java
67 lines
1.6 KiB
Java
|
|
/** Java class "Gerant.java" generated from Poseidon for UML.
|
|
* Poseidon for UML is developed by <A HREF="http://www.gentleware.com">Gentleware</A>.
|
|
* Generated with <A HREF="http://jakarta.apache.org/velocity/">velocity</A> template engine.
|
|
*/
|
|
package adherents;
|
|
|
|
import adherents.Adherent;
|
|
import java.util.*;
|
|
|
|
/**
|
|
* <p>
|
|
*
|
|
* </p>
|
|
*/
|
|
class Gerant {
|
|
|
|
///////////////////////////////////////
|
|
// operations
|
|
|
|
|
|
/**
|
|
* <p>
|
|
* Does ...
|
|
* </p><p>
|
|
*
|
|
* </p><p>
|
|
*
|
|
* @param args ...
|
|
* </p>
|
|
*/
|
|
public static void main(String[] args) {
|
|
|
|
// your code here
|
|
Adherent a1=new Adherent(1,"Dupont","Paris",1980);
|
|
Adherent a2=new Adherent(2,"Meyer","Strasbourg",1955);
|
|
Adherent a3=new Adherent(3,"Legwenn","Brest",1960);
|
|
System.out.println (a1);
|
|
System.out.println (a2);
|
|
System.out.println (a3);
|
|
System.out.println ();
|
|
a1.cotiser(45);
|
|
System.out.println (a1);
|
|
System.out.println (a2);
|
|
System.out.println (a3);
|
|
System.out.println ();
|
|
a2.cotiser(30);
|
|
System.out.println (a1);
|
|
System.out.println (a2);
|
|
System.out.println (a3);
|
|
System.out.println ();
|
|
a3.cotiser(40);
|
|
System.out.println (a1);
|
|
System.out.println (a2);
|
|
System.out.println (a3);
|
|
System.out.println ();
|
|
a2.cotiser(15);
|
|
System.out.println (a1);
|
|
System.out.println (a2);
|
|
System.out.println (a3);
|
|
} // end main
|
|
|
|
} // end Gerant
|
|
|
|
|
|
|