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

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.

主站蜘蛛池模板: 嘉义县| 东山县| 建水县| 南江县| 神池县| 伊宁县| 萨迦县| 秦皇岛市| 莒南县| 阳谷县| 广水市| 原平市| 晋州市| 清镇市| 汾西县| 贵州省| 永吉县| 水城县| 楚雄市| 镇赉县| 垫江县| 多伦县| 巨野县| 阿瓦提县| 丁青县| 乐平市| 磐石市| 龙川县| 昂仁县| 大名县| 邹平县| 金阳县| 神木县| 辉县市| 临桂县| 荣昌县| 儋州市| 麦盖提县| 库尔勒市| 文水县| 江西省|