0
How do you use class inheritance
I don't know how to use class inheritance does anyone have any idea
1 Answer
+ 9
Think of inheritance as a subclass deriving some more general properties from a superclass.
Animals:Mammals:Canine:Dogs:Terrier
Now if you had to specify all the properties of the Terrier class from scratch, having many classes representing species --- maintaining that would be inefficient, if doable. That is what inheritance is for.
Brush up your knowledge here, as well:
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2469/?ref=app