What if you didn’t have to rewrite code every time you wanted something similar?
What if you could build on what already exists?
That’s exactly what inheritance does.
So far, we’ve learned how to create classes and objects, and how they help us model real-world things in code.
Now we take it one step further: inheritance.









