Originally posted by amal shah:
In the main method how am i able to instantiate an interface....
"History would be kind to me, for I intend to write it."
Originally posted by Vilas Lawande:
this means that we cannot create object of interface anyway?
Originally posted by dhwani mathur:
here it is method of class which is anonymous
but for suppose there are 2 or 3 methods defined in the interface than is it compulsory for us ,to implement these methods?
one more doubt i have that is if interface consist of some method
say "public void disp();" and if we create an anonymous subclass of
interface than is it possible to implement the interface method in the anonymous inner class?
interface abc{
}
interface abc{
void method();
}
this means that we cannot create object of interface anyway?
all events occur in real time
but for suppose there are 2 or 3 methods
defined
in the interface than is it compulsory for us
,to implement these methods?
one more doubt i have that is if
interface consist of some method
say
public void disp();
and if we create an anonymous subclass of
interface than is it possible to implement
the interface method in the anonymous inner class?
"History would be kind to me, for I intend to write it."