what is overloading and overriding?

Answer Posted / rupkkkkk

Overriding:- Both the methods are same with same arguments
and same return type with in its class and its subclass.


Overloading:- Both has same method but with different
arguments may or may not be same return type written in the
same class itself.

Is This Answer Correct ?    1 Yes 1 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’.

1778


What is polymorphism oop?

619


What are the 5 oop principles?

598


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1145


Can an interface inherit a class?

557






What is class and object in oops?

607


Get me an image implementation program.

1557


Why do pointers exist?

656


what is the sylabus for priliminaries?

1685


How to call a non virtual function in the derived class by using base class pointer

5253


What is the significance of classes in oop?

587


What is multilevel inheritance in oop?

555


What is meant by multiple inheritance?

736


c++ program to swap the objects of two different classes

1761


What is the use of oops?

619