| Title | The Class for Representing a TV (Case 2) |
| Catalog Type | SLCItem |
| Persistent ID | https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/objects_classes_tv__68bdb308f6cc3d7a9cc096b7?index=1 |
| Platform Name | PCEX |
| Features | — |
| 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. |
| Keywords | — |
| Author | Mohammad Hassany |
| Institution | University of Pittsburgh |
| Iframe URL | https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/objects_classes_tv__68bdb308f6cc3d7a9cc096b7?index=1 |
| Protocol | SPLICE |
| Protocol URL | |
| License | MIT |
| Programming Language | JAVA |
| Natural Language | en |