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?
Create JTree using an Object
Java Abstract Class Example
Difference between abstract class and an interface
Please can you help
can you explain ?
Can you correct this codes?
Can you help me with applet?
What can I create with Python?
Can you get a job with Dataquest?
Can you make AI in Python?
Can you build AI with Python?
Creating JDBC Statement object
How would you create a button with rounded edges?
Example to create exception object in java
Hey neighbor, can you lend some Hammers?
Hey neighbor, can you lend some Hammers?
Abstract class,Abstract methods and classes
how can i set an object in focus
Abstract class
How can I create sessionfactory in Hibernate?
Using Abstract Class
Can you tell me how it worked?
how can i create a discussion forum?
object
ModuleNotFoundError: No module named 'Classy'

Ads