Polymorphism with an example?

Answer Posted / vivin

It means ability to take more than 1 form.

(ex)consider the operation of addition,

For 2 numbers it will generate sum{2 + 3 = 5} then
for 2 strings it will concatenate (vivin + durai = vivindurai)

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1617


which feature are not hold visual basic of oop?

1734


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

1699


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1549


What is a class and object?

606






i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1425


What is encapsulation in ict?

620


How do you explain polymorphism?

600


What is a superclass in oop?

680


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?

1403


What is polymorphism in oops?

567


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2019


What do you mean by Encapsulation?

651


Write a program to sort the number with different sorts in one program ??

1927


Which is not an object oriented programming language?

552