How can I use aprivatemember variable in a non-member function, when the variable happens to be a pointer?
我如何能在非成员函数使用私有成员变量时,变量是指针?
2
This example shows the C++ source code that contains a non-class function, aPrivatemember function of a class, and a Public member function of a class.
这个示例使用的 C++ 源代码包含一个非类函数、类的一个私有成员函数和一个公共成员函数。
3
Amember function with private visibility can only be invoked by other member functions in the class in which it is defined, but not in the subclasses.