• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating class inside a interface  RSS feed

 
luke brown
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am not able to understand how we are able to create an object of static inner class defined inside an interface .




inside a decompiler the class is visible as:




output:

inside disp

how am i able to create a new object for static class?
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
luke brown wrote:
how am i able to create a new object for static class?


Static inner classes do not require (or depends on) an instance of an outer class. So, is there much of a difference if the static inner class is defined in a class or in an interface?

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!