首页
科技
登录
6mi
u
盘
搜
搜 索
科技
C# 继承的对象实例 的有关问题
C# 继承的对象实例 的有关问题
it
2022-05-05
105
class Parent { public void Print() { Console.WriteLine(this.GetType()); } } class Child : Parent { } class Program { static void Main(string[] args) { Child c = new Child(); c.Print(); } }
输入结果:
转载于:https://www.cnblogs.com/jiehu/p/3560451.html
转载请注明原文地址: https://win8.8miu.com/read-24357.html
专利
最新回复
(
0
)