Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 353 Bytes

15.4.md

File metadata and controls

5 lines (3 loc) · 353 Bytes

(a) class Derived : public Derived { ... }; Incorrect, it is impossible to derive a class from itself.

(b) class Derived : private Base { ... }; This is not only a declaration, but also a definition.

(c) class Derived : public Base; Incorrect. The declaration of a derived class contains the class name but does not include its derivation list.