Cpp
Everything on SkillVeris tagged Cpp — collected across the glossary, study notes, blog, and cheat sheets.
7 resources across 1 library
Interview Questions(7)
What Are Templates in C++?
C++ templates let you write a function or class once with a placeholder type parameter, and the compiler generates a fully concrete, type-checked version for e…
Generics vs Templates: Java vs C++
Java generics and C++ templates both let you write type-parameterized code, but they resolve that parameterization completely differently: Java erases generic…
What is the Diamond Problem in Multiple Inheritance?
The diamond problem is the ambiguity that arises when a class inherits from two classes that both inherit from a common base, and the compiler cannot determine…
What is a Pure Virtual Function?
A pure virtual function is a C++ member function declared with '= 0' that has no implementation in the class that declares it, forcing every concrete (non-abst…
What is a Template Class?
A template class is a class defined with one or more type parameters so the compiler can generate a distinct, type-specific version of it for each concrete typ…
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…