What is polymorphism? Explain with an example.

Answer Posted / santosh mohapatra

Polymorphism is a Greeck word which can be divided into 2
sub word i.e., poly stands for many and morphism stands for
forms. It is one of the essential feature of OOP's. This
feature is mainly used for the member functions of a class.
THe polymorphism is used to overload a function in a same
memory location i.e. the reusability of a function with
different parameters.

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use oop?

605


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

1780


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.

1460


What does and I oop and sksksk mean?

654


Can we override main method?

608






What is the point of oop?

657


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?

1409


Is this job good for future? can do this job post grduate student?

1694


Plese get me a perfect C++ program for railway/airway reservation with all details.

3431


What is overloading and its types?

618


What type of loop is a for loop?

683


What is the fundamental idea of oop?

638


What is ambiguity in inheritance?

625


When not to use object oriented programming?

572


can we make game by using c

3432