class ClassSealer { friend class Sealed;}; // ...class FailsToDerive : public Sealed // This class is capable of being instantiatedclass ClassSealer { friend cl
据我所知,使类sealed摆脱了在VTable中查找还是我错了?如果我创建一个类sealed,这是否意味着类层次结构中的所有虚拟方法都被标记为sealedpublic class A { protected virtual void O() { ........ } // I guess Ican make this privat