除了作为抽象类的派生类对象的一部分,是不能够生成抽象基类对象的。
We may not create objects of an abstract type except as parts of objects of classes derived from the abstract base.
那我们如何在派生项目里修改这些类的行为呢?
So how could we modify behavior of these classes from the derived project side?
派生类可以指明它实现了其基类的接口,但是并不是一定要这么做。
Derived classes are not required to re-state that they implement an interface from their base class, but are permitted to do so. (This case is special; see below for more details.)
应用推荐