6. class PPP int H: protected : int S; public : void input (int); void out (); }; class Q0Q : private PPP int T; protected : int U; public : void indata (int, int); void outdata (); }; class RRR :...


6.<br>class PPP<br>int H:<br>protected :<br>int S;<br>public :<br>void input (int);<br>void out ();<br>};<br>class Q0Q : private PPP<br>int T;<br>protected :<br>int U;<br>public :<br>void indata (int, int);<br>void outdata ();<br>};<br>class RRR : public Q0Q<br>int M;<br>public :<br>void disp ();<br>};<br>int main ()<br>002 objl;<br>RRR obj2;<br>return 0;<br>a. In the above code, is the member function out() accessible by obj1?<br>b. Name the member function(s), which can be accessed from the obj2?<br>c. Name the data member(s) that can be accessed from function disp().<br>

Extracted text: 6. class PPP int H: protected : int S; public : void input (int); void out (); }; class Q0Q : private PPP int T; protected : int U; public : void indata (int, int); void outdata (); }; class RRR : public Q0Q int M; public : void disp (); }; int main () 002 objl; RRR obj2; return 0; a. In the above code, is the member function out() accessible by obj1? b. Name the member function(s), which can be accessed from the obj2? c. Name the data member(s) that can be accessed from function disp().

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here