sealed是用来中断继承链的。sealed 能让一个类失去被继承的能力。public class SubClass : BaseInterClass { public override void absfunction() { base.absfu... Read More
posted @ 2013-05-23 23:03 lein.wang Views(389) Comments(0) Diggs(0) Edit
父类的构造函数总是在子类之前执行的。public class BaseCircle { public BaseCircle() { Console.WriteLine(" no arguments base constructor!!!"); ... Read More
posted @ 2013-05-23 22:07 lein.wang Views(135) Comments(0) Diggs(0) Edit