what is overloading and overriding?

Answer Posted / nishanthi

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 ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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’.

1867


What does and I oop mean?

708


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1491


What is the diamond problem in inheritance?

673


What is class and example?

670






How to use CMutex, CSemaphore in VC++ MFC

4424


What is and I oop mean?

721


What is a null tree?

734


What is object-oriented programming? Webopedia definition

835


What is the importance of oop?

698


What is oops in simple words?

692


Why is polymorphism needed?

694


What is difference between data abstraction and encapsulation?

705


how to get the oracle certification? send me the answer

1742


Why is there no multiple inheritance?

640