Home > Method overriding

Method Overriding in Java: – PART-2

 Real example of Java Method Overriding:-Consider a scenario, Bank is a class that provides functionality to get rate of interest. But, rate of interest varies according to banks. For example, SBI, ICICI and AXIS banks could provide 5%, 6% and 7% rate of interest. [crayon-69de1a56e22cf861232348/] [crayon-69de1a56e22d3341894668/]Advantages of method overridingThe main advantage of

This Article is TAGGED in , , . Read more