+1 vote
in JAVA by
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

+1 vote
asked May 24, 2019 in JAVA by rajeshsharma
+1 vote
asked May 24, 2019 in JAVA by rajeshsharma
...