基类方法的反隐藏 反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();
};

上一篇:git使用(1)----推送代码到远程


下一篇:Delphi 常用属性说明(超长)