| Author |
class in the interface
|
amar nath jha
Ranch Hand
Joined: Mar 09, 2006
Posts: 42
|
|
what is the role of class declared inside an interface. Is it final?
|
 |
gaurav abbi
Ranch Hand
Joined: Jan 05, 2007
Posts: 108
|
|
hi, even i'm curious about the purpose, but anyway i wrote this dummy code which worked fine, so they are not private, one thing i can say. interface IQuest{ class MyQuest{ int iTest; void myQuestMethod1(){ } } } public class Quest implements IQuest{ public static void main(String[] args){ IQuest.MyQuest obj = new MyQuest(); obj.myQuestMethod1(); obj.iTest = 10; } }
|
thanks,<br />gaurav abbi
|
 |
 |
|
|
subject: class in the interface
|
|
|