Answer Posted / amit kumar
Poly means “many” and morph means “form”. In the context of
object-oriented systems, it means objects that can take on
or assume many different forms. Polymorphism means that the
same operation may behave differently on different classes.
Polymorphism allows us to write generic, reusable code more
easily, because we can specify general instructions and
delegate the implementation details to the objects involved.
Since no assumption is made about the class of an object
that receives a message, fewer dependencies are needed in
the code and, therefore maintenance is easier. For example,
in a payroll system, manager, office worker, and production
worker objects all will respond to the compute payroll
message, but the actual operations performed are object specific
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism used for?
Where You Can Use Interface in your Project
What is for loop and its syntax?
what is the sylabus for priliminaries?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What does and I oop and sksksk mean?
Why polymorphism is used in oops?
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?
is there any choice in opting subjects like 4 out of 7
What is class in oop with example?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is the use of oops?
Can an interface inherit a class?
Please send ford technologies placement paper 2 my mail id