Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.81 KB

File metadata and controls

31 lines (20 loc) · 1.81 KB

A base class is a type of class that is used to inherit member variables and member functions from.

Or: a base class is the entity that all derived classes share.

A special type of base class is the abstract base class.

External links

    1. Herb Sutter, Andrei Alexandrescu. C++ coding standards: 101 rules, guidelines, and best practices. ISBN: 0-32-111358-6. Item 50: 'Make base class destructors public and virtual, or protected and nonvirtual'.
    1. Bjarne Stroustrup. The C++ Programming Language (4th edition). 2013. ISBN: 978-0-321-56384-2. Chapter 21.4. Advice. page 640: '[2] Avoid data members in base classes intended as interfaces'
    1. Bjarne Stroustrup. The C++ Programming Language (4th edition). 2013. ISBN: 978-0-321-56384-2. Chapter 21.4. Advice. page 640: '[7] Use base classes with data members to support implementation inheritance'