Hello there!
I have been studing Java for 1-2 months. I am now learning nested classes but I am very confused, despite searching online for some help. I would really appreciate some very basic examples and also what a nested class can access from outer or other classes, and what the outer or other classes can access from the nested class.
Any help will do! :c-^_^:
3 replies to this topic
#1
Posted 06 April 2011 - 07:20 AM
|
|
|
#2
Posted 06 April 2011 - 09:59 AM
Maybe my post here helps: http://forum.codecal...html#post296545
Is the tutorial at Nested Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects) not clear?
Is the tutorial at Nested Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects) not clear?
#3
Posted 06 April 2011 - 10:08 AM
I have already seen this tutorial but didn't find the "which class can access which" architecture :c-smirk:
#4
Posted 06 April 2011 - 01:13 PM
Nested classes can access the private and protected members of its outer class, and vice versa.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









