What is polymorphism? Explain with an example.

Answer Posted / ujjawal ranjan

Polymorphism is a characteristics of OOPS(Object Oriented Programming Language) through which method/function for any class of objects can be called by the same name and each responses according to their type-specific behavior .
The main benefit of polymorphism is that it simplifies the programming interface. It permits conventions to be established that can be reused in class after class.
Instead of inventing a new name for each new function you add to a program the same names can be reused.
It helps in understanding an interface.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is oops in simple words?

585


What is encapsulation in ict?

608


What is meant by multiple inheritance?

741


can we make game by using c

3433


what type of question are asked in thoughtworks pair programming round ?

1766






Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1660


What is purpose of inheritance?

645


which feature are not hold visual basic of oop?

1725


What is debug class?what is trace class? What differences are between them? With examples.

1612


Why is encapsulation used?

578


What is byval and byref? What are differences between them?

1691


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1631


how to get the oracle certification? send me the answer

1671


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2150


What is the significance of classes in oop?

590