Polymorphism is a characteristic of object oriented programming that allows your code to be more flexible, easier to maintain, easier to test, and more dynamic. With polymorphism, you can provide any instance of a given base class (interface), and the run time interpreter is able to determine the concrete implementation it is working with. Since the interface is the same between the base class and the concrete implementation, though the behavior of the object being used may vary, the code using it can be sure that it's using a compatible data type with the base class. Copyright (c) 2013 Rodrigo Silveira http://www.easylearntutorial.com
Copyright © 2014-2017 EasyLearnTutorial. All rights reserved.