修改错别字

master
高宏宇 5 months ago
parent 5f25030f7d
commit 8451eecc09

@ -90,7 +90,7 @@ public class SimpleGeometricObject {
可以看到父类对共有的变量和方法进行了定义,虽然父类可以实例化,但是好像实例化父类并没有什么实际的意义。
**注意:这个类最好不能被实例化,因为没有意义。下一章将借用这个离职,并使其不能被实例化。**
**注意:这个类最好不能被实例化,因为没有意义。下一章将借用这个例子,并使其不能被实例化。**
#### 1.2.2. 子类Circle
@ -244,7 +244,7 @@ public class TestCircleRectangle {
### 2.1. 构造函数也被继承了吗?
> No. They are not inherited.They are invoked explicitly or implicitly. Explicitly using the super keyword.
> No. They are not inherited. They are invoked explicitly or implicitly. Explicitly using the super keyword.
>
> A constructor is used to construct an instance of a class. Unlike properties and methods, a superclass's constructors are not inherited in the subclass. They can only be invoked from the subclasses' constructors, using the keyword super. If the keyword super is not explicitly used, the superclass's no-arg constructor is automatically invoked.

Loading…
Cancel
Save