How to let a class access a private method or attribute of another class?

前端 未结 0 705
广开言路
广开言路 2021-01-31 20:11

Considering a class with only a private attribute like:

class Example
{
private:
    int number = 10;
};

If I create an other class that contain

相关标签:
回答
  • 消灭零回复
提交回复
热议问题