Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java基础入门80问之25关于静态内部类访问外部类变量描述错误 #3

Open
hakil opened this issue Aug 22, 2021 · 1 comment

Comments

@hakil
Copy link

hakil commented Aug 22, 2021

由于static Nested Class不依赖于外部类的实例对象,所以,static Nested Class能访问外部类的非static成员变量。

静态内部类无法访问外部类非static成员变量

@LucasSu520
Copy link

正解,正想提这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants