/robowaifu/'s C++ learning textbook chapter 09
Technicalities: Classes, etc.
“Remember, things take time.” —Piet Hein
"In this chapter, we keep our focus on our main tool for programming: the C++ programming language. We present language technicalities, mostly related to user-defined types, that is, to classes and enumerations. Much of the presentation of language features takes the form of the gradual improvement of a Date type. That way, we also get a chance to demonstrate some useful class design techniques."
- § 9.2 Classes and members
- § 9.3 Interface and implementation - part a
- § 9.3 Interface and implementation - part b
- § 9.4.1 struct and functions
- § 9.4.2 Member functions and constructors - part a
- § 9.4.2 Member functions and constructors - part b
- § 9.4.3 Keep details private - part a
- § 9.4.3 Keep details private - part b
- § 9.4.4 Defining member functions - part a
- § 9.4.4 Defining member functions - part b
- § 9.4.5 Referring to the current object
- § 9.4.6 Reporting errors
- § 9.5 Enumerations
- § 9.5.1 “Plain” enumerations
- § 9.6 Operator overloading
- § 9.7.1 Argument types - part a
- § 9.7.1 Argument types - part b
- § 9.7.2 Copying
- § 9.7.3 Default constructors - part a
- § 9.7.3 Default constructors - part b
- § 9.7.3 Default constructors
- § 9.7.4 const member functions
- § 9.7.5 Members and “helper functions”
- § 9.8 The Date class