different between overloading and overriding
Answers were Sorted based on User's Feedback
Answer / rekha
Overriding - same method names with same arguments and same
return types associated in a class and its subclass.
Overloading - same method name with different arguments, may
or may not be same return type written in the same class itself.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / pugalarasu
Overloading:
Same function name but different arguments
Eg:
A(int i);
A(int i,float f);
Overriding:
refers to functions that have the same signature as a
virtual function in the base class:
class B {
virtual void V();
};
class D : public B {
viod V();
};
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / rakurakesh
Method overloading
done in same
class but method overridng done in
diff. Class here inheritance occure.
| Is This Answer Correct ? | 0 Yes | 1 No |
Should I learn data structures in c or python?
HOW CAN ADD OUR FUNCTION IN LIBRARY.
Write a program that takes a 5 digit number and calculates 2 power that number and prints it
5 Answers ABS, Accenture, HCL, Infosys, Infotech, SoftSolve, Software India, TCS, Vertex, Vimukti Technologies,
What does void main () mean?
Hai why 'c' is the middle language
Describe the difference between = and == symbols in c programming?
What is double pointer?
Can you apply link and association interchangeably?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
why division operator not work in case of float constant?
What are the different types of endless loops?
i want to asked a question about c program the question is: create a c program that displays all prime numbers less than 500? using looping statement