示例#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);
 }
示例#4
0
 public Building(int floors)
 {
     this.floors = floors;
     ele         = new Elevator();
 }