Home > DeveloperSection > Interviews > Can we instantiate abstract class

Posted on    July-24-2015 11:25 PM

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

Monaj Singh
Monaj Singh

Total Post:48

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