Polymorphism means that some of the functions perform their action differently in different classes. It is very unique and powerful concept to revise something without changing it. Such as class 'shape' have sub classes circle, triangle etc and 'draw () ' is a method of 'shape' class which is shared by all the sub classes at 'shape'.
No comments:
Post a Comment