Skip to main content

4 docs tagged with "classes"

View all tags

Access Control

Access control (public, private, protected) enables encapsulation by controlling which code can access class members.

Class Memory Layout

This page explains how the class features you write — members, virtual functions, inheritance —

Constructors and Destructors

Constructors initialize objects and allocate resources. Destructors clean up when objects are destroyed. Together they enable RAII (Resource Acquisition Is Initialization).

Multiple Inheritance

Multiple inheritance allows a class to inherit from multiple base classes. This enables combining functionality but introduces complexity, especially the diamond problem.