Originally posted by Sefa Urgenc:
I was wondering why the instanceof of operator is not compiling in the following code.
Thanx in Advance
instanceof works on an object, not a class. So first you would need a subclass of A (so you can instantiate an object--A is abstract) and then you would need to create the object.
And then your main would look like: