What is polymorphism? Explain with an example.

Answer Posted / naveen malik

The behavior of an object can depend upon the state its in,
thus exhibiting Polymorphism. Consider a car colliding with
a wall. The impact of the process would depend upon the
approach speed of the car, the Angle it strikes in, the
strength of the wall and so on. If two cars were to collide,
the results would be much different, with both of them
receiving considerable damage.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why interface is used?

555


What is oops and why we use oops?

573


What is the problem with multiple inheritance?

588


What is oops and its features?

592


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?

1412






Is react oop?

615


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3558


What is overriding in oops?

606


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4248


What is use of overloading?

612


What is pointer in oop?

541


What are the 5 oop principles?

605


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 is solid in oops?

617


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