what is the benefit of overriding?

Average Rating
0 out of 5 stars. 0 votes.

what is the benefit of overriding?

The benefit of overriding is: ability to define a behaviour that’s specific to the subclass type which means a subclass can implement a parent class method based on its requirement.