Sunday, July 28, 2019

Why we used Method overriding?

Ans:

When we need to Extend the parent Class Method's behavior  with some modifications.

This is the situation where we inherit the class and override the methods which are required as per
our business requirement.


No comments:

Post a Comment