类 我有一个包含一些成员,其可以从外部源被修饰的类: class CNode
{
protected:
// these members might be changed by users
std::string m_sName;
CState m_CurrentState;
CColor m_DiffuseColor;
};
样品被简化,它具有多
有没有办法隐藏基类的成员? class A
{
public int MyProperty { get; set; }
}
class B : A
{
private new int MyProperty { get; set; }
}
class C : B
{
public C()
{
//this should be an