What are Advatages of Overloading and Overridding.

Answer Posted / pooja srivastava

Overloading means same functions but different arguments..
so with overloading we can take new action with diff
parameters..


Overriding means same methods with same argument and same
prototype...
so with overriding we can create new definatin in subclass
with same method name and prototype..

Is This Answer Correct ?    38 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How listener identify that the event came from a particular object?

1472


What is tostring () method?

546


What is difference between path and classpath in java?

487


Does java support Operator Overloading?

611


How hashmap increases its size in java?

493






Is a boolean variable?

523


What is difference between static class and normal class?

533


Can we use a switch statement with strings?

551


What is variable argument in java?

561


please send me hr interview questions in it industry

1670


what is meant by Garbage collection?

620


what is recursion in java

601


What environment variables are required to be set on a machine in order to run Java programs?

619


Is null an object in java?

565


What data type is true or false?

578