Forums Register Login

confused question

+Pie Number of slices to send: Send
I want to ask the diffrence of the following code:
(Inner is an class enclosed by class Outer)
code A:

Inner i=new Inner();//that ok
Outer.Inner oi=new Outer().new Inner();//only if Inner is static inner class?
+Pie Number of slices to send: Send
Inner i=new Outer().new Inner();//what about this one?
+Pie Number of slices to send: Send
Hi Michael , look at this code and ask me if you have any questions ?

Hope this helps
Sri
+Pie Number of slices to send: Send

Take a look at this code
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 961 times.
Similar Threads
use of Outer.this
Inner Class
Inner classes
Inner Class - Initialization Sequence
Inner Class
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:07:27.