The purpose of this chapter is to explain the C++ important topics such as OOP’s Concepts , RAII , Rule of 3 , Rule of 5 ,Smart Pointer , Deep and Shallow Copy etc.
Syllabus:
- What is object-oriented programming (OOP) and how is it implemented in C++?
- What is a virtual function in C++ and how does it work?
- What is the difference between a pointer and a reference in C++?
- What is Pure virtual functions?
- What is Abstract Class?
- What is Interface Class?
- Why copy constructor use to pass by reference only not pointer?
- Deep Copy and Shallow Copy.
- Diamond Problems
- Virtual Base Class.
- Object Slicing
- Static Casting
- Dynamic Casting
- Reinterpret Cast
- Lambda
- Smart Pointer
- Rule of three
- Rule of five
- Rule of zero
- Dangling Pointer and Memory leaks
- Function Pointer
- Comparator
- Virtual destructor
- Constexpr and Consteval
- Return Type Resolver
- Type erasure by void*