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
Why is there no multiple inheritance?
What is advantage of inheritance?
which feature are not hold visual basic of oop?
What is interface? When and where is it used?
officer say me - i am offered to a smoking , then what can you say
What exactly is polymorphism?
What is a function in oop?
What is data binding in oops?
What is the types of inheritance?
What is the fundamental idea of oop?
What is variable example?
What is abstraction in oop?
What are the benefits of polymorphism?
What is object and class in oops?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).