assume it has something to do with the fact that the method is defined inside the inner class
Everything there is of default access, I assume it has something to do with the fact that the method is defined inside the inner class. Anybody with some clarification?
according to what i thought that since fields inside an interface are public static final by default so if we are defining a class inside an interface it should also be static(and definately it is) but i was not sure of whether the class will be treated as a field(ofcourse not a method) and hence it will be final also so that it's non-extendable.....but to my surprise it can be extendeds....so i was wrong in thinking this....
can anyone tell me that what is a class, deifined inside an interface or may be a class itself, is treated like......a class is actually a user defined datatype so when we are defining a class inside a class or an interface what are doing?? how can we relate the concept of a class being usr-defined data type inside a class or an inerface.
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton