本文介绍了我该如何解决这些问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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。命名QQQ类的基类和派生类。

ii。命名数据成员可以从函数disp()访问数据。

iii。命名成员函数,可以从类RRR的对象访问。

iv。成员函数out()是否可以通过QQQ类的对象访问?



我尝试了什么:



guyz如果是这样你能回答这些问题请回答吗?



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?

推荐答案



这篇关于我该如何解决这些问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 23:53