2014-10-08 13:42:12 +01:00

21 lines
472 B
Java

package com.iluwatar;
/**
*
* Proxy (WizardTowerProxy) controls access to the actual object (WizardTower).
*
*/
public class App {
public static void main(String[] args) {
WizardTowerProxy tower = new WizardTowerProxy();
tower.enter(new Wizard("Red wizard"));
tower.enter(new Wizard("White wizard"));
tower.enter(new Wizard("Black wizard"));
tower.enter(new Wizard("Green wizard"));
tower.enter(new Wizard("Brown wizard"));
}
}