Does an Interface can have an Inner class?

India
March 10, 2007 12:21am CST
whether we cann implement an class inside the interface or not ...?if so how?If not Y we cannot implement that?
1 response
• Italy
14 Mar 07
No, you cannot implement an inner class inside an interface, just because an interface is not a class anc can't be instantiated, so it can't have inner classes.
• India
21 Mar 07
That is correct. inner class can be instantiated only when the parent class is instantiated. For interface, there is nothing called instantiation.So this concept does not apply.