C# 使用派生类重写基类的属性 | 您所在的位置:网站首页 › 神农架旅游指南 › C# 使用派生类重写基类的属性 |
C# 使用派生类重写基类的属性,c#,inheritance,properties,polymorphism,C#,Inheritance,Properties,Polymorphism,在C代码中,如果钢筋类源自钢筋类,且钢筋形状类继承了钢筋形状类。是否可以使用RebarShape类重写基类中的属性reinforcmentshape public class ReinforcementShape { } public class RebarShape : ReinforcementShape { } public class Reinforcement { public ReinforcementShape S |
CopyRight 2018-2019 实验室设备网 版权所有 |