Consider the real life Television. Identify its attributes and operations/functions. Create UML diagram for Television.

C Programming

Consider the real life Television. Identify its attributes and operations/functions. Create UML diagram for Television. Then create definition of this class in C++.

The definition should contain data members and member function prototypes only. Definition of member function are not required in today’s lab task.

Class Definition in C++

class Television

{

public:

void setTVProperties(string brand,string model,float displaySize ,bool fhd,int price); void showTVProperties();

void switchOn(); void switchOff(); void selectSource(string); void changeChanngel(int); void increaseVolume(); void decreaseVolutme();

void mute(bool);

Consider the real life Television. Identify its attributes and operations/functions. Create UML diagram for Television.
Scroll to top