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 purpose of inheritance?
Why do we need polymorphism in c#?
What does I oop mean?
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’.
What is destructor in oop?
What is class and object with example?
Give two or more real cenario of virtual function and vertual object
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is oops in simple words?
what is the sylabus for priliminaries?
What is destructor example?
What is difference between polymorphism and inheritance?
How is polymorphism achieved?
Why is polymorphism needed?
Can a destructor be called directly?