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

How it works...

Polymorphism is something you will easily be using already by simply applying good object-oriented principles to the design of your classes. With the abstract Shuttle class, we saw that the class took on the shape of the NasaShuttle class and the RoscosmosShuttle class when it was used to derive those new classes from its abstraction. The constructor of the NasaShuttle class was then overridden to provide the same method name, but implemented using different signatures.

This is at the heart of polymorphism. Most likely, you have been using it without knowing about it.

主站蜘蛛池模板: 都兰县| 陇西县| 郴州市| 温宿县| 延津县| 东丽区| 临江市| 东乡| 永德县| 甘孜| 盐城市| 余干县| 衢州市| 长寿区| 汾阳市| 沙洋县| 丹阳市| 奉贤区| 涞源县| 泾阳县| 孝昌县| 阳城县| 湘乡市| 乌鲁木齐县| 舟曲县| 全南县| 宜川县| 香河县| 兴业县| 蚌埠市| 永靖县| 民丰县| 长子县| 牡丹江市| 万山特区| 崇义县| 阿克| 卢氏县| 雅安市| 沾益县| 大埔县|