Quiz Entry - updated: 2026.07.06
What are the 5 main features C++ adds to C?
Classes & inheritance, exception handling, templates, namespaces, and the STL.
- Classes & inheritance — object orientation: encapsulation, inheritance, polymorphism
- Exception handling —
try/catch/throwfor structured error handling - Templates — generic, type-independent code (the foundation of the STL)
- Namespaces — group names to avoid collisions (
std::,using namespace) - STL — ready-made containers, iterators, and algorithms
C++ is an extension of C: all of C still works, and these features sit on top.
Famous quote by Bjarne Stroustrup (C++'s creator):
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off."
Go deeper:
What is C++? — isocpp FAQ — the big-picture view of the language and its features.