• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

inner class of interface

 
Sunita Vontel
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please see this code

Is a class defined inside an interface implicitly static? How do I access the class b in the above code.
Thank you
 
Erin Waite
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Sunita

A class defined inside an interface is implicitly static. To access the class b in the your code, simply write
b objb = new b();
Corrrect me if I'm wrong please.
Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic