Difference between over loading and over ridding?
Answers were Sorted based on User's Feedback
Answer / vasanth
Method Overloading is the method name looks similar but
return type and method arguement (inside parameter) differs.
Method Overiding is that the method name, arguements and
return type seems similar on both base and derived class.
(Sometimes we will add the additional code to the derived
class method also).
| Is This Answer Correct ? | 1 Yes | 3 No |
What is protected in oop?
What is public, protected, private?
What is encapsulation with example?
What is interface? When and where is it used?
what is the main difference between sizeof() operator in c and c++
When not to use object oriented programming?
//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }
What is the different between Applet and Application?
create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.
2 Answers CTS, Delhi University,
What is debug class?what is trace class? What differences are between them? With examples.
What is oops with example?
what is ns string? what is ns array?