This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Scope of having an interface within a class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Scope of having an interface within a class" Watch "Scope of having an interface within a class" New topic
Author

Scope of having an interface within a class

prads Menon
Greenhorn

Joined: Jun 30, 2006
Posts: 2
Hyi,

Can someone explain the scope(explain) of the program coded below.

public class A
{
interface B{}
}

--> nd also tell me what the sublass should do when it extends the above class.

Thanks and regards
Prads
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32833
    
    4
Welcome to the Ranch.

It is easy to tell you what the program would do, but I think you would do better to try it and see for yourself.
prads Menon
Greenhorn

Joined: Jun 30, 2006
Posts: 2
i have tried that and its working but i wanna know the advantage of having an interface within a class.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Scope of having an interface within a class
 
Similar Threads
abstract class
regarding Abstract class and Interface
class inside interace
call the method of the anonymous class??
Core Java