 Google C++ Style Guideconstructors are: • If the work calls virtual functions, these calls will not get dispatched to the subclass implementations. Future modification to your class can qui- etly introduce this problem even if If a constructor is provided, it must take no arguments and it must be protected. • If it is a subclass, it may only be derived from classes that satisfy these conditions and are tagged with the Interface Virtual methods are the preferred way of executing different code paths depending on a specific subclass type. This puts the work within the object itself. • If the work belongs outside the object and0 码力 | 83 页 | 238.71 KB | 1 年前3 Google C++ Style Guideconstructors are: • If the work calls virtual functions, these calls will not get dispatched to the subclass implementations. Future modification to your class can qui- etly introduce this problem even if If a constructor is provided, it must take no arguments and it must be protected. • If it is a subclass, it may only be derived from classes that satisfy these conditions and are tagged with the Interface Virtual methods are the preferred way of executing different code paths depending on a specific subclass type. This puts the work within the object itself. • If the work belongs outside the object and0 码力 | 83 页 | 238.71 KB | 1 年前3
共 1 条
- 1













