79.md 691 字节
Newer Older
W
init  
wizardforcel 已提交
1 2 3 4 5 6 7 8 9 10 11
# 课程:接口和继承

> 原文: [https://docs.oracle.com/javase/tutorial/java/IandI/index.html](https://docs.oracle.com/javase/tutorial/java/IandI/index.html)

## [接口](createinterface.html)

您在上一课中看到了实现接口的示例。您可以在这里阅读有关接口的更多信息 - 它们的用途,为什么要编写接口,以及如何编写接口。

## [继承](subclasses.html)

本节介绍了从另一个类派生一个类的方法。也就是说,_ 子类 _ 如何从 _ 超类 _ 继承字段和方法。您将了解到所有类都派生自`Object`类,以及如何修改子类从超类继承的方法。本节还介绍了类似接口的 _ 抽象类 _。