Can you create an object of an abstract class?

Can you create an object of an abstract class?

Can you create an object of an abstract class? 1 Answer(s) 5 years and 2 months ago
Posted in : Java Beginners

Ads

Hi,

Can you create an object of an abstract class?

Thanks,

View Answers

April 13, 2013 at 6:46 PM

Hi friend,

No, We can not create an object of Abstract classes directly. Abstract classes can not be instantiated directly however, in subclasses abstract class can be instantiated using 'new' keyword. To read more please go through the following link