In this example, a base class, BaseC, and a derived class, DerivedC, use the same field name x, which hides the value of the inherited field.

 
  • 在该例中,基类BaseC和派生类DerivedC使用相同的字段名x,从而隐藏了继承字段的值。
今日热词
目录 附录 查词历史