Title The Class for Representing a TV
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=objects_classes_tv&ch=py_tv2
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 state of the TV could be accessed or changed only through the getter and setter methods. The class should also include 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).
Keywords classes, objects
Author Kamil Akhuseyinoglu
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=objects_classes_tv&ch=py_tv2
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview