From 320a09ddb73cadd8a993a47fde7f9e3892068258 Mon Sep 17 00:00:00 2001 From: TonnyGe <1466369+gtn@user.noreply.gitee.com> Date: Sun, 6 Sep 2020 22:58:41 +0800 Subject: [PATCH] =?UTF-8?q?update=20docs/book/03-Objects-Everywhere.md.=20?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=AC=A6=E5=8F=B7=E9=97=AE=E9=A2=98=EF=BC=88?= =?UTF-8?q?=E5=85=A8=E8=A7=92=E5=88=86=E5=8F=B7=E6=94=B9=E5=8D=8A=E8=A7=92?= =?UTF-8?q?=E5=88=86=E5=8F=B7=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/book/03-Objects-Everywhere.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/book/03-Objects-Everywhere.md b/docs/book/03-Objects-Everywhere.md index 1c91e4b..ba5c22e 100644 --- a/docs/book/03-Objects-Everywhere.md +++ b/docs/book/03-Objects-Everywhere.md @@ -455,7 +455,7 @@ sf.increment(); 当然了,首选的方法是直接通过类来调用它。代码示例: ```java -Incrementable.increment(); +Incrementable.increment(); ``` 相比非静态的对象,`static` 属性改变了数据创建的方式。同样,当 `static` 关键字修饰方法时,它允许我们无需创建对象就可以直接通过类的引用来调用该方法。正如我们所知,`static` 关键字的这些特性对于应用程序入口点的 `main()` 方法尤为重要。 -- Gitee