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

Portability

Portability, also referred to as modularity, is the primary benefit of OOP. With OOP, we program in a series of classes. For example, we would have a bicycle class and other classes for a complete bicycle management system. If there was a problem with a bicycle method, we immediately know to check the bicycle class. That makes source code troubleshooting efficient.

The class structure lends itself well to portability. Our example bicycle class can easily be used in other programs as it is a self-contained object. As mentioned previously, the class contains all the components of a physical bicycle. 

主站蜘蛛池模板: 涿鹿县| 花莲市| 花莲市| 绍兴县| 宁德市| 新兴县| 安化县| 嘉禾县| 成安县| 永善县| 乐陵市| 广宗县| 岑溪市| 卢氏县| 高邑县| 新津县| 桦甸市| 洛浦县| 长宁区| 明水县| 荣昌县| 呼图壁县| 莱西市| 鹤岗市| 富宁县| 武乡县| 丽水市| 修水县| 许昌县| 贡觉县| 三都| 通州市| 黎城县| 临西县| 岳普湖县| 德化县| 芮城县| 平定县| 河池市| 建瓯市| 长子县|