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
What is the purpose of polymorphism?
What is a superclass in oop?
What is oops and its features?
What is inheritance and how many types of inheritance?
How to improve object oriented design skills?
Why we use classes in oop?
What is polymorphism used for?
which feature are not hold visual basic of oop?
What is difference between inheritance and polymorphism?
How do you answer polymorphism?
What are the data types in oop?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Why do we use class?
What is abstract class in oops?
What is oops and why we use oops?