




















using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
A a = new A();
Console.WriteLine(a.ToString());
Console.WriteLine(a.ToString2());
a
= new B(); }
}
}
}
}
结果:
A.tostring()
A.tostring2()
B.tostring()
A.tostring2()
B.tostring2()
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。