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

Abstraction

Abstraction is closely related to encapsulation, and, to some extent, it overlaps with it. Briefly, abstraction provides a mechanism that exposes what an object does and hides how the object does what it's supposed to do.

A real-world example of abstraction is a car. In order to drive a car, we don't really need to know what the car has under the hood, but we need to know the data and behavior it exposes to us. The data is exposed on the car's dashboard, and the behavior is represented by the controls we can use to drive a car.

主站蜘蛛池模板: 南平市| 仲巴县| 铅山县| 桂阳县| 亚东县| 县级市| 文昌市| 双鸭山市| 张北县| 万盛区| 迁安市| 正安县| 大连市| 蓝山县| 治多县| 阆中市| 句容市| 永川市| 左贡县| 望江县| 炉霍县| 科技| 正蓝旗| 乐清市| 黎城县| 南丰县| 奎屯市| 元氏县| 繁峙县| 红桥区| 黄大仙区| 高雄市| 祥云县| 绿春县| 铜川市| 大英县| 鹤壁市| 卢湾区| 祥云县| 宜良县| 云浮市|