package bounds1;


/**
 * Testklasse, die das BOund Konzept demonstriert.
 * 
 * @author  Ralf Kunze (rkunze@uos.de), Institut fuer Informatik, Universitaet Osnabrueck
 * @date 25.05.2007
 */
public class Test {
	public static void main(String[] args) {
		// Bounds passen nicht!
//		Box<Person> a = new Box<Person>();
		
		// Bounds passen nicht!
//		Box<Angestellter> b = new Box<Angestellter>();
		
		// Das ist erlaubt:
		Box<Chef> c = new Box<Chef>();
		Chef chef = new Chef("WilliWacker",100);
		c.put(chef);
		System.out.println(c);
	}
}
