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

Do you know about multiple inheritance?

634


What is encapsulation selenium?

549


What are the important components of cohesion?

547


Why multiple inheritance is not allowed?

579


Can static class have constructor?

579






Why do we use class?

625


What is oops concept with example?

571


program for insertion ,deletion,sorting in double link list

2274


What is the diamond problem in inheritance?

569


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?

1400


What is the important feature of inheritance?

627


What is the real life example of polymorphism?

601


write a programe to calculate the simple intrest and compund intrest using by function overlading

1658


What do you mean by overloading?

573


officer say me - i am offered to a smoking , then what can you say

1574