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
how to get the oracle certification? send me the answer
Why do we use class?
Is react oop?
What is abstract class in oop?
Write a program to reverse a string using recursive function?
What is polymorphism give a real life example?
explain sub-type and sub class? atleast u have differ it into 4 points?
Get me an image implementation program.
How can you overcome the diamond problem in inheritance?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is interface in oop?
What is variable example?
What is overloading and its types?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)