Ejemplo n.º 1
0
 public void Update(Elevator elevator)
 {
     Console.Write("This elevator is goign to be arrving first.");
     Console.Write(elevator.ElevatorName);
 }
 }                                                                                                                       // this is considering single person for multiple request it can be in List
 public void Attach(Elevator elevator)
 {
     _elevators.Add(elevator);
 }
 public void Detach(Elevator elevator)
 {
     _elevators.Remove(elevator);
 }
Ejemplo n.º 4
0
 public Building(int floors)
 {
     this.floors = floors;
     ele         = new Elevator();
 }