⟩ Where The Inheritence is useful? How we decide the situation of inheritence?
Mostly inheritance requires in large classes where every
time searching and writing of same data is impossible. That
case requires us to define some inherited functions methods
n classes.Whenver they required they simply inherited from
inheritance class where they are already defined along with
their functionality to handling some other data pieces.