c++私有成员函数
私人会员功能 (Private Member Function)
A function declared inside the class's private section is known as "private member function". A private member function is accessible through the only public member function. (Read more: data members and member functions in C++).
在类的私有部分中声明的函数称为“私有成员函数” 。 通过唯一的公共成员函数可以访问私有成员函数。 (了解更多: C ++中的数据成员和成员函数 )。
Example:
例:
In this example, there is a class named "Student", which has following data membe