Can we instantiate an abstract class?
Here, i’m creating instance of my class No, you are not creating the instance of your abstract class here. Rather you are creating an instance of an anonymous subclass of your abstract class. And then you are invoking the method on your abstract class reference pointing to subclass object. This behaviour is clearly listed in … Read more