Some time back in a thread i found a post saying
So in this code,
are we really instatialing an object of class A? are not we first making an anonymous class which extends A and implements its abstract method and creating an object of that anonymous class?
please clarify.
TIA
Of corse an abstract class can be instantiated, though only through an anonymous class
So in this code,
are we really instatialing an object of class A? are not we first making an anonymous class which extends A and implements its abstract method and creating an object of that anonymous class?
please clarify.
TIA