Interview Questions
Everything on SkillVeris tagged Interview Questions — collected across the glossary, study notes, blog, and cheat sheets.
6 resources across 1 library
Interview Questions(6)
What is a Partial Class?
A partial class is a class whose definition is split across two or more source files, which the compiler merges back into a single class at build time, most no…
What is a Friend Class in C++?
A friend class in C++ is a class explicitly granted access to another class’s private and protected members, declared using the `friend` keyword inside the cla…
Friend Functions vs Encapsulation
A friend function is a non-member function explicitly granted access to a class’s private and protected members, and it appears to conflict with encapsulation…
What is a Copy Assignment Operator?
A copy assignment operator is the special member function (in C++, operator=(const T&)) that defines how an already-existing object’s state is overwritten with…
Move Semantics vs Copy Semantics
Copy semantics duplicates an object’s resources so the source and destination each own independent data, while move semantics transfers ownership of a source o…
What is a Move Constructor?
A move constructor is a special constructor (in C++, T(T&& other)) that builds a new object by transferring ownership of an existing rvalue object’s internal r…