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

Understanding how classes are laid out in memory is essential for optimization, debugging, and interfacing with other languages.

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.