Firstly, create a class and name it as AirConditioner (Line 1).
Next in the class constructor, create the reference variable office_a_c (Line 3). Please note the reference variable shall be preceded with a self keyword. Besides, the reference variable is set to False by default.
Create an AirConditioner object (Line 6) and then use the dot syntax (.) to set the object reference variable office_a_c to True.
Types in java are divided into two categories. the primitive types are boolean, byte, char, short, not, long, float, and double. all other types are REFERENCE types