//making reference object.
// the following line will declare a officeAC object of type AirAconditioner by //calling the class constructor by reference using "new" operator.
AirConditioner officeAC = new AirConditioner();
// the following line will can the method of class AirConditioner to turonOn //the AC
officeAC.turnOn();