- 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.
推薦閱讀
- ASP.NET MVC4框架揭秘
- 零起步玩轉掌控板與Mind+
- vSphere High Performance Cookbook
- Xcode 7 Essentials(Second Edition)
- Learning Data Mining with Python
- Python從菜鳥到高手(第2版)
- Apex Design Patterns
- TypeScript項目開發實戰
- 硅谷Python工程師面試指南:數據結構、算法與系統設計
- R用戶Python學習指南:數據科學方法
- Oracle實用教程
- Python預測分析實戰
- 原型設計:打造成功產品的實用方法及實踐
- Clojure for Finance
- Building Clouds with Windows Azure Pack