package ug.ufe.employe;
public class TestEntreprise {
public static void main(String[] args) throws EmployeException {
Entreprise e1 = new Entreprise("IBM");
Entreprise e2 = new Entreprise("Sun");
System.out.println("Engager Dupond chez IBM");
Employe emp1 = new Employe("Dupond");
e1.engager(emp1);
System.out.println(e1);
System.out.println(e2);
System.out.println("Engager Poiret chez Sun");
e2.engager(new Employe("Poiret"));
System.out.println(e1);
System.out.println(e2);
System.out.println("Engager Ravier et Burot chez Sun");
e2.engager(new Employe("Ravier"));
e2.engager(new Employe("Burot"));
System.out.println(e1);
System.out.println(e2);
}
}