Can you create an object of an abstract class?

Ads
 

Can you create an object of an abstract class?

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

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

Ads









Related Tutorials/Questions & Answers:
Can you create an object of an abstract class?
ModuleNotFoundError: No module named 'classh'
Advertisements
ModuleNotFoundError: No module named 'classh'
Can a abstract class be declared final?
Can a abstract class be defined without any abstract methods?
Can we instantiate abstract class in Java?
Java Abstract Class Example
Please can you help
can you explain ?
Difference between abstract class and an interface
Can you correct this codes?
Can you help me with applet?
Creating JDBC Statement object
Hey neighbor, can you lend some Hammers?
Hey neighbor, can you lend some Hammers?
How would you create a button with rounded edges?
how can i set an object in focus
How can I create sessionfactory in Hibernate?
Can you tell me how it worked?
How to limit object creation in Java?
How to limit object creation in Java?
how can i create a discussion forum?
Abstract class,Abstract methods and classes
how we can create website through java
object
ModuleNotFoundError: No module named 'can-you-guess'
how can create album in java by using Stack ....
how can you say java is secure
Can you provide me Hibernate configuration tutorial?
How many qusetions can you ask?
Abstract class

Ads