• Post Reply Bookmark Topic Watch Topic
  • New Topic

static nested classes  RSS feed

 
Aruna Balasuriya
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


In the above code Inner class reference make in following way

OuterOne.NestOne n = new OuterOne.NestOne();

But it should be as

OuterOne.NestOne n = new OuterOne().NestOne();

Please explain me

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take some time to read this story:
Getting in Touch with your Inner Class
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!