Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
state design pattern: question: inner or outer class: which is better?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Gene Wirchenko, post: 4400019"] state of the prospective outer class, then it should not be an inner class, but it might be a candidate for a nested class. references an instance variable of the outer-class instance, then it will have to be an inner class. This follows directly from the inability of a static member to access an instance member. Thank you. It was a terminology issue. I got this from Oracle: "Nested classes are divided into two categories: static and non-static. Nested classes that are declared static are simply called static nested classes. Non-static nested classes are called inner classes." Are these the definitions that you are using? Sincerely, Gene Wirchenko [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
state design pattern: question: inner or outer class: which is better?
Top