//OPERATIONS
 public void AssignCarPark(CarPark carPark)  //Machine constructed after CarPark, thus needs an extra function.
 {
     this.carPark = carPark;
 }
Exemple #2
0
        // ATTRIBUTES

        // CONSTRUCTORS
        public ExitSensor(CarPark carPark)
            : base()
        {
            this.carPark = carPark;
        }
        // ATTRIBUTES

        // CONSTRUCTORS
        public EntrySensor(CarPark carPark)
            : base()
        {
            this.carPark = carPark;
        }