12.6
Bo Qian's YouTube Channel
Advanced C++
1. Const
What is the rule of const on the left of * and right of *?
How to cast const variable to non-const and cast a non-const variable to const?
2. Disallow Functions
When should we use private destructors?
3. Define Implicit Type Conversion
When should we use keyword 'explicit'?
4. All Casting Considered - Part1
When can we use static_cast to cast from a base pointer to derived class?
When dynamic_cast requires the 2 types to be polymorphic?
5. All Casting Considered - Part2
6. Static Polymorphism
7. Struct Vs. Class
1). Struct Members are by default public, Class Members are by default public.
2). It's better to expose members using interface.
3). If there are too many setters and getters in a Class, think about the design.
8. Const and Functions
If there's a const version of an overloaded member function, which one is called?