基类方法的反隐藏 反private 秘籍
class GoodStudent:private Mentor,private Student
{
public :
using Mentor::GetInfo; ///-------------------------------------------基类方法露出来了
GoodStudent(string name,string title,int i):Mentor(name,title),Student(i)
{};
// void GetInfo();
};
posted on 2013-07-30 17:26 shoutcharter 阅读(128) 评论(0) 编辑 收藏 举报