官术网_书友最值得收藏!

Implementing polymorphism

Polymorphism is a concept that is quite easy to grasp once you have looked at and understood the other pillars of OOP. Polymorphism literally means that something can have many forms. This means that from a single interface, you can create multiple implementations thereof.

There are two subsections to this, namely, static and dynamic polymorphism. With static polymorphism, you are dealing with the overloading of methods and functions. You can use the same method, but perform many different tasks.

With dynamic polymorphism, you are dealing with the creation and implementation of abstract classes. These abstract classes act as a blueprint that tells you what a derived class should implement. The following section looks at both.

主站蜘蛛池模板: 张家口市| 天台县| 文安县| 龙游县| 疏勒县| 衡山县| 满洲里市| 玉树县| 太康县| 清徐县| 什邡市| 双鸭山市| 贺兰县| 保德县| 县级市| 都昌县| 石嘴山市| 高邮市| 白河县| 繁昌县| 台江县| 涿鹿县| 扶余县| 扬州市| 丽水市| 英山县| 博乐市| 晋州市| 万山特区| 娱乐| 汝州市| 淮阳县| 平远县| 拉萨市| 阜康市| 桑植县| 江津市| 英德市| 扶余县| 台中市| 偏关县|