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

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. 

主站蜘蛛池模板: 涿州市| 乐平市| 哈巴河县| 亚东县| 永靖县| 樟树市| 沈丘县| 西安市| 哈巴河县| 喀喇沁旗| 交口县| 玉山县| 禹城市| 潢川县| 缙云县| 绍兴县| 调兵山市| 日喀则市| 安吉县| 荣昌县| 柳江县| 兰考县| 山东省| 邮箱| 宜君县| 齐河县| 富阳市| 柯坪县| 蕲春县| 清苑县| 沾益县| 临汾市| 青河县| 廉江市| 泾川县| 天台县| 日喀则市| 吉安市| 敦煌市| 仪征市| 崇州市|