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 advantage of oop over procedural language?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
How do you use inheritance in unity?
#include
When not to use object oriented programming?
2. Give the different notations for the class.\
Why do we need oop?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
How do you define social class?
Why is object oriented programming so hard?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is polymorphism in oops with example?
Which method cannot be overridden?