Glosson here is
Glosson here in Las inheritance means to create a class called child who inherits all the features functions
and variables of the base class parent inheritance makes the life easier when you need to create a class
that takes all the features of the previous class you got.
So you do not need to repeat the same code of the previous class to the new one.
That's why we use inheritance.
Let's see how now I will show you how to use inheritance.
First go to brackets.
OK.
I will create a class called child inside the parenthesis of the class child.
We put the parent name class person inside the Prentice's call an event.
The keyword pass which means child class will inherit all the features of Piersol class then simply
create an object of child class searcher's kid equal child parenthesis quotation marks Johnny comma
quotation marks five kids.
The output after that try that term.
All right.
As you can see here we get an error.
Do you know where to find this error.
It's actually all don't matter because the constructor accepts three arguments not two arguments.
Anyways I will add any ID numbers
Try the time now.
Wonderful works great right now.
Thanks for watching.