2A. No Ducks Allowed – Types and Deduction
Learning Objectives
By the end of this chapter, you will be able to:
- Implement your own classes that behave like built-in types
- Implement classes that control which functions the compiler creates (Rule of Zero/Rule of Five)
- Develop functions using auto variables, like you always have
- Implement classes and functions by making use of strong typing to write safer code
This chapter will give you a good grounding in the C++ type system and allow you to write your own types that work in that system.