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

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.

主站蜘蛛池模板: 四子王旗| 织金县| 鹿邑县| 泽普县| 定西市| 环江| 武穴市| 呼伦贝尔市| 海盐县| 博白县| 闻喜县| 南通市| 射阳县| 五台县| 怀宁县| 博野县| 油尖旺区| 枣庄市| 齐河县| 饶河县| 彭水| 赤水市| 麻栗坡县| 宕昌县| 佛山市| 崇礼县| 蕲春县| 玉屏| 滁州市| 朝阳区| 巩留县| 渑池县| 八宿县| 榆社县| 华安县| 孟津县| 龙州县| 区。| 巨鹿县| 集安市| 广丰县|