The base class is the super/parent class of a child class; so a child class inherit from a base class.
When a child class inherit from a base class; it have access to redefine the member function that is declared public. 'public' is an access modifier which means it can be access from outside the class and modified.
Therefore, all the child class which inherit the base class can redefine the member function that are public.
You can look at it like a right triangle being made with the vertical part being 9 and the horizontal part being 8, then you want to find the diagonal part. So that's the Pythagorean theorem