- Design Patterns and Best Practices in Java
- Kamalmeet Singh Adrian Ianculescu LUCIAN PAUL TORJE
- 100字
- 2021-06-25 20:52:27
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.
推薦閱讀
- C++案例趣學(xué)
- 架構(gòu)不再難(全5冊(cè))
- Java Web及其框架技術(shù)
- Bulma必知必會(huì)
- Oracle數(shù)據(jù)庫(kù)從入門(mén)到運(yùn)維實(shí)戰(zhàn)
- INSTANT CakePHP Starter
- AutoCAD VBA參數(shù)化繪圖程序開(kāi)發(fā)與實(shí)戰(zhàn)編碼
- Learning FuelPHP for Effective PHP Development
- Learning Unity 2D Game Development by Example
- 自學(xué)Python:編程基礎(chǔ)、科學(xué)計(jì)算及數(shù)據(jù)分析(第2版)
- 3ds Max印象 電視欄目包裝動(dòng)畫(huà)與特效制作
- 分布式數(shù)據(jù)庫(kù)HBase案例教程
- Java Web開(kāi)發(fā)教程:基于Struts2+Hibernate+Spring
- Java自然語(yǔ)言處理(原書(shū)第2版)
- React and React Native