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
Why do we use inheritance?
What is destructor example?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is object in oops?
How oops is better than procedural?
Why interface is used?
What is inheritance in simple words?
Can an interface inherit a class?
Prepare me a program for the animation of train
What is object and class in oops?
How is polymorphism achieved?
What is oops?what is its use in software engineering?
What is static modifier?
what is the sylabus for priliminaries?
Can you inherit a private class?