Table of Contents
- Introduction
- Concrete Types
- Abstract Types
- Virtual Functions
- Class Hierarchies
4.1 Introduction
- Q/A Format for “A Tour of C++” by Bjarne Stroustrup.
[Quizlet Coming Soon]
[Anki Coming Soon]
4.2 Concrete Types
- What are concrete types in C++?
- Why are concrete types often used in performance-critical applications?
- How do concrete types relate to built-in types?
- What is an arithmetic type in the context of user-defined types in C++?
- Why do we often define operations (such as addition and multiplication) outside a class definition rather than as member functions?
- Why is it beneficial for simple operations like constructors and arithmetic operators to be inlined? What are the constraints of inlining?
- What are the performance trade-offs between passing an arithmetic type by value versus by reference in operator overloading?
- If a class manages dynamic memory internally, why does the Rule of Three/Five matter?