Confusion about inheritance
- by Samuel Adam
I know I might get downvoted for this, but I'm really curious.
I was taught that inheritance is a very powerful polymorphism tool, but I can't seem to use it well in real cases.
So far, I can only use inheritance when the base class is an abstract class.
Examples :
If we're talking about Product and Inventory, I quickly assumed that a Product…