| 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
|
|
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.
|
 |
 |
|
|
subject: Scope of having an interface within a class
|
|
|