- 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.
推薦閱讀
- Getting Started with React
- WebAssembly實戰
- Microsoft Dynamics 365 Extensions Cookbook
- C語言課程設計
- Gradle for Android
- Extending Puppet(Second Edition)
- Scala for Machine Learning(Second Edition)
- Unity 2018 Augmented Reality Projects
- Solutions Architect's Handbook
- Instant Zurb Foundation 4
- 區塊鏈架構之美:從比特幣、以太坊、超級賬本看區塊鏈架構設計
- Instant Apache Camel Messaging System
- 奔跑吧 Linux內核
- 跟小樓老師學用Axure RP 9:玩轉產品原型設計
- Java EE應用開發及實訓