CPlus Plus
Everything on SkillVeris tagged CPlus Plus — collected across the glossary, study notes, blog, and cheat sheets.
10 resources across 1 library
Interview Questions(10)
What is a Virtual Function?
A virtual function is a member function declared in a base class that a derived class can override, with the actual implementation resolved at runtime based on…
What is Multiple Inheritance?
Multiple inheritance is when a class inherits fields and methods from more than one parent class simultaneously, combining their behavior into a single subclas…
What is a Copy Constructor?
A copy constructor is a special constructor that creates a new object as a duplicate of an existing object of the same class, copying its field values into the…
What is a Destructor in OOP?
A destructor is a special member function invoked deterministically when an object goes out of scope or is explicitly deleted, releasing resources such as memo…
What is Operator Overloading in OOP?
Operator overloading is the object-oriented feature that lets a class redefine what a built-in operator, such as +, ==, or [], means when applied to its own ob…
What is a Smart Pointer?
A smart pointer is a class template that wraps a raw pointer and automatically manages the lifetime of the object it points to, deallocating it when it is no l…
RAII vs Garbage Collection
RAII (Resource Acquisition Is Initialization) ties a resource’s lifetime deterministically to an object’s scope so it is released the instant that object is de…
What is the Rule of Three in C++?
The Rule of Three states that if a C++ class defines any one of a custom destructor, copy constructor, or copy assignment operator, it almost certainly needs t…
What is the Rule of Five in C++?
The Rule of Five extends the Rule of Three for modern C++ by stating that a resource-owning class should typically define all five special member functions tog…
What is Object Slicing in C++?
Object slicing happens in C++ when a derived-class object is assigned or passed by value into a base-class object, causing the derived-class-specific members a…