C++ Inheritance Made Simple: Types, Examples, and Why It Matters