| Description |
Construct a class that represents a TV. The class should contain data that represents the TV's state (power on or off, current volume level). The class should include methods to access the state of the TV and also methods to change the state of the TV (turn on/off, change volume level). Assume that the volume level is an integer and ranges from 1 to 7 (both inclusive). \n\nThe class TVTester2 instantiates two objects from this class and invokes the methods on those objects to turn on the TV and change the volume level. |