Tuesday, February 9, 2010

Real time usage of polymorphism concept

One of the basic concepts of Object Oriented Programming is that we use polymorphism instead of conditional logic when we want to change runtime behaviour of a program. The Open Closed Principle clarifies this idea by suggesting that software should be open to extension (means can be flexible for adding new features), but closed to modification (means not able change the existng functionality).

No comments: