基类方法的反隐藏 反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 阅读(134) 评论(0) 收藏 举报
浙公网安备 33010602011771号