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