ØThe specialization relationship is typically implemented using inheritance.
Polymorphism(多态): There are two powerful aspects to inheritance.
ØOne is code reuse.
ØThe second is polymorphism(many-forms).
在父类中定义的虚函数,可以在子类中被重写。override是必要的。
Limitations of Abstract
ØAbstract does force all the derived classes to implement the method, but nothing forces the derived derived classes to implement its own DrawWindow() method.
ØSealed 类(完全不允许派生), 防止偶然继承。与Abstract类(用来派生)正相反。
ØSealed class 中不能创建新的Protected成员。