Home > DeveloperSection > Interviews > Can we instantiate abstract class

Posted on    July-24-2015 11:25 PM

 Java Java  Abstract Class 
Ratings:
 1 Answer(s)
  404  View(s)
Rate this:

Monaj Singh
Monaj Singh

Total Post:48

Points:240
Posted on    July-24-2015 11:25 PM

 
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.

Modified On Apr-04-2016 07:19:08 AM

Don't want to miss updates? Please click the below button!

Follow MindStick