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

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. 

主站蜘蛛池模板: 施甸县| 宁都县| 大悟县| 饶河县| 穆棱市| 稻城县| 巴中市| 海阳市| 永新县| 高唐县| 宿州市| 高阳县| 定边县| 罗甸县| 沙洋县| 万荣县| 望谟县| 交口县| 柳江县| 尚志市| 北宁市| 尼玛县| 清苑县| 德安县| 东丽区| 太湖县| 宣汉县| 湟源县| 宿州市| 宜宾县| 肇源县| 枣阳市| 黔西县| 高邑县| 濮阳县| 天长市| 龙海市| 太康县| 湘乡市| 兴业县| 资溪县|