What is the difference between "overloading" and "overridding"?
Answer Posted / shakti singh khinchi
Overloading: When more then 1 methods in a class having same
name but they are different in their number of parameters,
different in their parameters types and their order.
Overriding: When a parent class is derived by a child class
and some method which has present in parent class which is
declared as "virtual" in parent class , same method with
same name and parameters and sam type is also declared in
child class without "virtual" keyword, bcz it is by default
virtual in child. SO PARENT AND CHILD CLASS USES SAME METHOD
ARE CALLED OVERRIDING.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
the first character in the variable name must be an a) special symbol b) number c) alphabet
What is microsoft c++ redistributable 2013?
Is map sorted c++?
give me an example for testing a program showing the test path .show how the test is important and complex.
Define linked lists with the help of an example.
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
How can you link a c program with a c function?
What is difference between class and function?
How does a C++ structure differ from a C++ class?
What are keywords in c++?
What is pointer to member?
How do you declare A pointer to a function which receives nothing and returns nothing
Which c++ compiler is best?
What is enum class in c++?
Is multimap sorted c++?