Click here to Skip to main content
14,932,691 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
C++
class PPP
{
    int H: 
  protected :
    int S;
  public :
    void input (int);
    void out();
};

class QQQ : private PPP
{
    int T;
  protected :
    int U;
  public :
    void indata(int, int);
    void outdata();
};

class RRR : public QQQ
{
    int M;
  public :
    void disp();
};


i. Name the base class and derived class of the class QQQ.
ii. Name the data member(s) data can be accessed from function disp().
iii. Name the member function(s), which can be accessed from the objects of class RRR.
iv. Is the member function out() accessible by the object of the class QQQ?

What I have tried:

guyz are u be able to answer these questions if it is so please answer it?
Posted
Updated 30-Jul-18 3:01am
v4
Comments
Kenneth Haugland 30-Jul-18 8:54am
   
Its homework, besides you have a debugger don't you? Run the code, test tings out.
Jochen Arndt 30-Jul-18 8:57am
   
We would be able but will not do your homework for you.

Reread your course notes and / or a C++ tutorial. If you then still have a specific question, we will help.
KarstenK 30-Jul-18 11:32am
   
yz ;-)

We don't do homework for you. Homework, exercises, tests are all designed to help you to cement the learning in your brain.

Whilst many of us can answer the questions, we would not be doing you any favours if we did.

Try it yourself using your course notes (or other research). If you get stuck then come back with your own suggestions and we can help you with specifics
   
We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
Any failure of you will help you to learn what works and what don't, it is called 'trial and error' learning.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900