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

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. 

主站蜘蛛池模板: 体育| 神池县| 阳春市| 麻城市| 富川| 桑日县| 隆回县| 大悟县| 宝山区| 武安市| 水富县| 深圳市| 陇南市| 沈丘县| 留坝县| 南雄市| 西畴县| 河北省| 鹤壁市| 兴海县| 航空| 突泉县| 天津市| 正定县| 天津市| 榆中县| 会宁县| 泽库县| 东乌珠穆沁旗| 克拉玛依市| 宁陕县| 八宿县| 东至县| 平南县| 临武县| 丰都县| 社旗县| 湖北省| 饶河县| 尚义县| 巴彦淖尔市|