May 24, 2019 in JAVA
Q: What is meant by Method Overriding?

Method overriding happens if the sub class method satisfies the below conditions with the Super class method:

Method name should be same

Argument should be same

Return type also should be same

The key benefit of overriding is that the Sub class can provide some specific information about that sub class type than the super class.

Related questions

0 votes
May 24, 2019 in JAVA