26 Aug, 2020
C++ tricky topics.
Deep copy and Shallow copy-
- Difference between Shallow copy and Deep copy
- GFG
Copy constructor vs assignment operator-
- GFG Articles
Virtual Function and Vtable-
- learncpp Article
- why do we need virtual function- stackoverflow
Virtual destructor-
- Virtual Des. - GFG
Can we use static
keyword with const
qualifier in C++
- No, we can't use static keyword with const. const
qualifier affects this
pointer.
A static member function does
  not have a this
pointer (such a function is not called on a particular instance of a class), so const
  qualification of a static member function doesn't make any sense.
- Stackoverflow resource
Void pointer-
- void pointer- GFG
Structure padding-
- structural padding- youtube
- structural padding- gfg