A component of object-oriented programming, inheritance happens when a new object takes on properties of objects that already exist.
What’s the benefit of this?
Consider when creating items for an RPG. You will have many items:
Crates, pots, weapons, consumables, amulets, gems, spells...