Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Can you create an object of an abstract class?

Have Programming Question? Ask it here!
 
 
 


Java Coder
Can you create an object of an abstract class?
1 Answer(s)      a year and 4 months ago
Posted in : Java Beginners


Hi,

Can you create an object of an abstract class?

Thanks,


Advertisement
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

http://roseindia.net/java/example/java/core/java-abstract-class-example.shtml



Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com