Title The Class for Representing a TV
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=PYTHON&set=objects_classes_tv
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 channel). 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 channels). Assume that the valid channel range is from 1 to 120 (both inclusive).
Keywords classes, data structures, objects, stacks
Author Roya Hosseini
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=PYTHON&set=objects_classes_tv
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview