//#include<iostream>
//using namespace std;
//
//class Three
//{
//private:
// int a;
//public:
//
//protected: //protected在类外不可见
// //仅可在自己所在的类和自己所在类的子类中使用,
// void fun()
// {
// cout << "fun()" << a << endl;
// }
//};
//
//class Threeson :public Three //新定义一个Threeson的类,继承了Three类,是它的子类
//{
// void fun()
// {
// fun();
// }
//};
//
//int main()
//{
// /*Three a1;
// a1.fun();*/
//
// return 0;
//}
////
////总结:
////private:私有成员,只能被自己所在类的成员调用
////protected:受保护成员,只能被自己所在类和所在类的子类中被调用
////public:公有成员,类内类外均可调用