04. Find the output of the following C++ statements? C++ Statements class TTU (protected: float x; }; class ICT: protected TTU (public: char ch; void Process() { ch= (int) ((60.0+120.0) / 4.0); } void Display() { cout << int(this->ch); }}; void main() { ICT *obj = new ICT; obj->Process(); class BClass { public: obj->Display(); } void print() { cout << x << SClass (string s="", int a= 0) << str << endl; } (cout << "Good Bye from derived class\n"; str = s; x = a; } SClass (char t = 'a', int a = 10, string s= "Example"); -Class() { cout << "Welcome This Base Class\n"; } protected: int x; private: string str; }; class DClass: protected Class { public void print(){ cout << "Good Luck" << endl; }}; void main() { BClass "p; sClass Object("This is the base class", 5*5); p=80bject: p->print(); } class A {public: virtual void Function () { cout<<"Class A1" << endl; }); class A1 { public: void Function() { cout << "Class A" << endl; } }; class 8: public A (public: void Function() { cout << "Class D" << endl; } }; class C: public Al A "pte; Al "ptri; s obj; C obj1; ptr = 8obj; ptr2 = Sobj1; ptri->Function(); ger->Function(); } { public: void Function() { cout << "Class C" << endl; } }; void main()
04. Find the output of the following C++ statements? C++ Statements class TTU (protected: float x; }; class ICT: protected TTU (public: char ch; void Process() { ch= (int) ((60.0+120.0) / 4.0); } void Display() { cout << int(this->ch); }}; void main() { ICT *obj = new ICT; obj->Process(); class BClass { public: obj->Display(); } void print() { cout << x << SClass (string s="", int a= 0) << str << endl; } (cout << "Good Bye from derived class\n"; str = s; x = a; } SClass (char t = 'a', int a = 10, string s= "Example"); -Class() { cout << "Welcome This Base Class\n"; } protected: int x; private: string str; }; class DClass: protected Class { public void print(){ cout << "Good Luck" << endl; }}; void main() { BClass "p; sClass Object("This is the base class", 5*5); p=80bject: p->print(); } class A {public: virtual void Function () { cout<<"Class A1" << endl; }); class A1 { public: void Function() { cout << "Class A" << endl; } }; class 8: public A (public: void Function() { cout << "Class D" << endl; } }; class C: public Al A "pte; Al "ptri; s obj; C obj1; ptr = 8obj; ptr2 = Sobj1; ptri->Function(); ger->Function(); } { public: void Function() { cout << "Class C" << endl; } }; void main()
Chapter2: Using Data
Section: Chapter Questions
Problem 14RQ
Related questions
Question
All please
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 4 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,