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

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.

主站蜘蛛池模板: 万荣县| 舒城县| 垦利县| 天等县| 碌曲县| 安康市| 拜城县| 马龙县| 潢川县| 湘潭县| 宾川县| 土默特右旗| 常宁市| 宁武县| 习水县| 嵊州市| 庆城县| 德格县| 晋中市| 德格县| 石林| 娄底市| 和政县| 左权县| 普陀区| 通城县| 永昌县| 客服| 桐乡市| 福州市| 汝城县| 乐至县| 华亭县| 鄂尔多斯市| 南京市| 肇东市| 五河县| 长海县| 三原县| 普兰县| 通海县|