as title
didn't get it yet
正在讨论
评论 (1)
- 受欢迎
- 新
- 旧
你必须先登录才能发表评论
Thomas
27 三月, 15:16
C is using A and B -> C has to be an instance variable as either, A or B is an instance variable.
now you look at the main method and you see A being used without an object referencing it (like new Solution().A = 15) -> A has to be a class variable.
All clear now? :)
0