What are Advatages of Overloading and Overridding.

Answer Posted / arun lal

Method Overloading Advantage- Suppose we make a calculator program after some time we want change or add some new feature
then we overload the method, So we can reuse the our previous code and Can Add new .

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by flickering?

656


What is the intersection and union methods?

550


How can I right-justify a string?

629


What are the loops in java?

526


What is the definition of tree ?

590






What is parsing in java?

533


Can we use return in constructor?

497


Can an interface be defined inside a class?

522


What do you meant by active and passive objects?

611


Which is bigger double or float?

532


Do extraneous variables affect validity?

528


why we use merge option in hybernate pls give a ex snippet

1464


Can a constructor call the constructor of parent class?

541


What is substring 1 in java?

591


What does sprintf return?

590