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

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.

主站蜘蛛池模板: 丰镇市| 湟源县| 鱼台县| 伊宁县| 贵阳市| 乡宁县| 锦州市| 乐东| 青铜峡市| 墨脱县| 勐海县| 徐州市| 辽阳县| 原平市| 外汇| 武宣县| 德惠市| 固始县| 灵山县| 曲周县| 榆林市| 思南县| 古交市| 舟曲县| 兴业县| 突泉县| 扶余县| 玉林市| 高陵县| 鱼台县| 阿勒泰市| 布拖县| 阿拉尔市| 额尔古纳市| 福建省| 米易县| 巴南区| 古浪县| 乡宁县| 彝良县| 芦山县|