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
program for insertion ,deletion,sorting in double link list
What are oops methods?
What is polymorphism explain?
what is graphics
write string class as your own class in java without using any built-in function
Are polymorphisms mutations?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is interface in oop?
What is overriding in oop?
write a program to find 2^n+1 ?
what is the drawback of classical methods in oops?
why reinterpret cast is considered dangerous?
hi all..i want to know oops concepts clearly can any1 explain??
What is use of overloading?
How can you overcome the diamond problem in inheritance?