What is function overriding?

If you inherit a class into a derived class and provide a definition for one of the base class’s function again inside the derived class, then this function is called overridden function, and this mechanism is known as function overriding.