Difference between over loading and over ridding?
Answer Posted / 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 |
Post New Answer View All Answers
What is abstraction with example?
What is basic concept of oop?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Why is oop useful?
what's the basic's in dot net
Can private class be inherited?
What is multilevel inheritance?
Can bst contain duplicates?
What is difference between inheritance and polymorphism?
What is destructor oops?
What is the point of polymorphism?
Who invented oop?
What is class encapsulation?
What is encapsulation and abstraction? How are they implemented in C++?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.