Member-only story
Cracking the C++ Interview — Part 2
Essential C++ knowledge to ace a C++ interview
45 min readMay 3, 2019
Press enter or click to view image in full size![]()
Highlights
- Constructor member initializer lists
- this pointer
- Overloading the arithmetic operators
- The default constructor, copy constructor and assignment operator
- Shallow vs. deep copying
- Constructors and initialization of derived classes
- Virtual functions and pure virtual functions
- The virtual table
- dynamic_cast vs static_cast
- Basic exception handling
- Move constructors and move assignment
- Static and dynamic libraries
Table of Contents
- Basic object-oriented programming
- Operator overloading
- An introduction to object relationships (skipped)
- Inheritance
- Virtual Functions
- Templates (partly omitted)
- Exceptions (partly omitted)
- Move semantics and smart pointers
- The Standard Template Library
- std::string









