21 April 2016

What is Polymorphism in OOP ?

  • Polymorphism (from Greek, meaning “many forms”) is the mechanism that allows one interface/method/function/procedure to access a general class of actions.  
  • More generally, the concept of polymorphism is often expressed by the phrase “one interface,  multiple methods.” 
  • This means that it is possible to design a generic interface to a group of related activities.
Polymorphism

  • Polymorphism helps reduce complexity by allowing the same interface to be used to specify a general class of action.

PolymorphismSams Teach Yourself C++ in One Hour a Day (7th Edition)

No comments:

Post a Comment

Featured Post

How to Write PHP code and HTML code within a same file

A PHP file can have both PHP code and HTML code together. Any HTML code written outside of PHP <?php //php code here… ?> Code is ig...

Popular Posts