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 abstract class in oops?
#include
What is property in oops?
What is the real time example of inheritance?
What is encapsulation selenium?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What do you mean by Encapsulation?
What is constructor overloading in oop?
What is ambiguity in inheritance?
What do you mean by variable?
What are the types of abstraction?
What is polymorphism what are the different types of polymorphism?
What is difference between oop and pop?
What is abstraction with example?
What is the difference between static polymorphism and dynamic polymorphism?