static void Main(string[] args) { PasswordProtector protector = new PasswordProtector(); ProtectedDoor door = new ProtectedDoor(); protector.Register(2525, door); door.unlock(); Console.Read(); }
public virtual void setMyProtector(PasswordProtector theProtector) { myProtector = theProtector; }