/** * */ package lab11; import java.util.Vector; /** * @author rhyspj * */ public class Manager { private Vector myThings = new Vector(); public void register(CanBeTold thing){ myThings.add(thing); } public void clear(){ myThings = new Vector(); } public void tellAll(){ for (CanBeTold thing : myThings) { thing.respond(); } } }