package entreprise;

import java.util.*;

/**
 * Une entreprise
 */
public class Entreprise {
  private String nom;
  private List<Employe> employes;

  public Entreprise(String nom) {
    this.nom = nom;
    employes = new ArrayList<>();
  }
  
  public String getNom() {
    return nom;
  }

  public void engager(Employe emp) {
    employes.add(emp);
  }
  
  public Iterator<Employe> iterEmployes() {
    return employes.iterator();
  }

  @Override
  public String toString() {
    return "Entreprise [nom=" + nom + ", employes=" + employes + "]";
  }

}