C++20 sections · 1024 units
Open in Course

Section Recap

What we learned

You now use inheritance and polymorphism.

1.1. Inheritance creates class hierarchies with shared code

2.2. virtual functions enable runtime polymorphism

3.3. Override base class behavior in derived classes

4.4. Abstract classes define interfaces with pure virtual functions

Good job. You can now build extensible class hierarchies. Next, you will learn file I/O to persist data.