C++ Fundamentals: Object-Oriented Programming with C++
summary
Covers C++ OOP with concrete code patterns: shows Point/Rectangle and Person/Student examples, a Command undo stack and Pet/Dog/Cat polymorphism, and demonstrates constructor initialization list, use of explicit to block unwanted implicit casts, and pitfalls of copy/assignment versus move. Argues to prefer Rule of Zero (use smart pointers) and to push inheritance inward with state/strategy or templates/static polymorphism to avoid class explosion, plus practical rules for destructors, copy/move, and header/implementation splitting.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 1:05Object-oriented basics
- 3:57Access modifiers
- 5:44Data vs member functions
- 7:33Constructors deep dive
- 10:23Copy constructor
- 12:53Assignment operator
- 13:59Implicit casting
- 16:33Mutable members
- 18:19Destructors
- 19:27Rule of zero
- 22:01Inheritance introduction
- 23:46Destructors in inheritance
- 24:50Polymorphism
- 28:04Solid principles summary
- 28:49Stack of objects vs values
- 30:57Inheritance pitfalls
- 33:49State pattern
- 35:15Strategy pattern
- 37:42Avoiding inheritance
- 38:46Polymorphism alternatives
- 41:18Design complexity causes
- 42:45Solid principles recap
- 43:32Q&A
