difference between overloading and overridding

Answer Posted / $rav$...

OVERLOADING:-Principle of overloading is achieved through
polymorphism .we can have any number of methods with the
same name but the difference in the signature(:parameters ).
OVERRIDING:-Principle of overriding is achieved through
inheritance.we can have any number of methods with same
name,parameters and signature but the rewriting of the code
of the super class method in the subclass is done and we
give the new functionality to that method of keeping its
signature as the same.
dynamic binding prevails in overriding.inheritance is
compulsory.
static binding prevails in overloading.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of polymorphism?

683


What is a superclass in oop?

673


What is oops and its features?

594


What is inheritance and how many types of inheritance?

624


How to improve object oriented design skills?

573






Why we use classes in oop?

587


What is polymorphism used for?

578


which feature are not hold visual basic of oop?

1727


What is difference between inheritance and polymorphism?

577


How do you answer polymorphism?

580


What are the data types in oop?

611


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2040


Why do we use class?

638


What is abstract class in oops?

604


What is oops and why we use oops?

575