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

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.

主站蜘蛛池模板: 富川| 怀集县| 丁青县| 饶平县| 荣昌县| 陆川县| 新乡市| 德庆县| 抚松县| 读书| 霍城县| 思南县| 皋兰县| 垦利县| 天津市| 通化县| 靖安县| 武夷山市| 泰来县| 寻乌县| 略阳县| 峡江县| 乌兰察布市| 曲靖市| 盘山县| 鄄城县| 永清县| 沭阳县| 南城县| 凤城市| 从化市| 黄大仙区| 米易县| 界首市| 兴隆县| 长垣县| 阜阳市| 雷山县| 勃利县| 柘荣县| 芮城县|