Originally posted by Suhaas UNDEFINED: it won't compile..you are creating an instance of an abstract class explicitly dude..:-)
Abstract class can't be instantiated. But there is no such case in that code. See what is after new operator. Is it instantiation of the abstract class or abstract class ref variable refers to the object of the subclass?