Skip to content

Commit 0712d0c

Browse files
authored
Merge pull request frank-lam#24 from frank-lam/error_fix_20190117
更正成员内部类static方法和域的描述
2 parents 7bb89e7 + 2008110 commit 0712d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notes/JavaArchitecture/01-Java基础.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ outerClass...
829829

830830
在成员内部类中要注意两点:
831831

832-
- 成员内部类中不能存在任何 static 的变量和方法;
832+
- 成员内部类中不能存在`static`方法, 但是可以存在`static`域, 前提是需要使用`final`关键字进行修饰.
833833

834834
- 成员内部类是依附于外围类的,所以只有先创建了外围类才能够创建内部类。
835835

0 commit comments

Comments
 (0)