The question about OOP, C++ #include using namespace std;class TVprivat:int id;char company[20];string model;float screen_size;TV1(int id,string model){id = id;model = model;TV2(int id,...

The question about OOP, C++
Obviously that the program has<br>many syntax errors. Rewrite the<br>entire program after correcting<br>.these errors<br>#include <iostream.h><br>#include <string.h><br>using namespace std;<br>class TV<br>privat:<br>int id;<br>char company[20];<br>string model;<br>float screen_size;<br>TV1(int id,string model)<br>{<br>id = id;<br>model = model;<br>TV2(int id, string company, string model, float s)<br>{<br>id = id;<br>company = company;<br>model = model;<br>screen_size = s;<br>int set_company(char company)<br>{<br>company = company;<br>void get_company(char c)<br>{<br>return c;<br>);<br>int main()<br>tv tv1(100,

Extracted text: Obviously that the program has many syntax errors. Rewrite the entire program after correcting .these errors #include #include using namespace std; class TV privat: int id; char company[20]; string model; float screen_size; TV1(int id,string model) { id = id; model = model; TV2(int id, string company, string model, float s) { id = id; company = company; model = model; screen_size = s; int set_company(char company) { company = company; void get_company(char c) { return c; ); int main() tv tv1(100,"LG","OLED55CXPVA"); tv.set_company("LG"); tv tv1(101,"Samsung","QA65Q900RBRXTW");

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here