Do the following instruction using java.
1. Create a class called LightSwitch
2. Create a private Boolean property in LigthSwitch called Light
3. Add a public method in the LightSwitch class called isON
4. In the isON method make the Light property to TRUE
5. Add another public method in the LightSwitch class called isOFF
6. In the isOFF method make the Light property to FALSE
7. Create a public method in the LightSwitch called LightStatus that returns the value of the property Light
8. Create a new class called Switch extend the Class LightSwitch
9. Create constructor on the Switch class that would write the return value of the method LightStatus - System.out.println(LightStatus());
10. Add another command that would call the isON() method
11. Add another command that would write the return value of the method LightStatus - System.out.println(LightStatus());
12. Add another command that would call the isOFF() method
13. Add another command that would write the return value of the method LightStatus - System.out.println(LightStatus());
14. finally in the main method of the Switch class instantiate the Switch class - new Switch();
1. Create a class called LightSwitch
2. Create a private Boolean property in LigthSwitch called Light
3. Add a public method in the LightSwitch class called isON
4. In the isON method make the Light property to TRUE
5. Add another public method in the LightSwitch class called isOFF
6. In the isOFF method make the Light property to FALSE
7. Create a public method in the LightSwitch called LightStatus that returns the value of the property Light
8. Create a new class called Switch extend the Class LightSwitch
9. Create constructor on the Switch class that would write the return value of the method LightStatus - System.out.println(LightStatus());
10. Add another command that would call the isON() method
11. Add another command that would write the return value of the method LightStatus - System.out.println(LightStatus());
12. Add another command that would call the isOFF() method
13. Add another command that would write the return value of the method LightStatus - System.out.println(LightStatus());
14. finally in the main method of the Switch class instantiate the Switch class - new Switch();