freeCodeCamp/guide/chinese/java/data-abstraction/index.md

16 lines
602 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Data Abstraction
localeTitle: 数据抽象
---
## 定义
根据字典,抽象是处理想法而不是事件的质量。
同样在面向对象的编程中,抽象是从用户隐藏实现细节的过程,只有功能将被提供给用户。换句话说,用户将获得关于对象做什么而不是如何做的信息。
在Java中使用抽象类和接口实现抽象。
## 资源
[教程点 - Java抽象类和接口](https://www.tutorialspoint.com/java/java_abstraction.htm)
[Java教程 - Java抽象方法和类](https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html)