Can you create an object of an abstract class?

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
Example to create exception object in java
Using Abstract Class
Abstract class
Abstract class,Abstract methods and classes
abstract method
ModuleNotFoundError: No module named 'Classy'
Java Abstract Class
object
Creating JDBC Statement object
Abstract Class in Java
Maven dependency for com.47deg - classy-core_sjs0.6_2.12 version 0.4.0 is released. Learn to use classy-core_sjs0.6_2.12 version 0.4.0 in Maven based Java projects
Maven dependency for com.47deg - classy-cats_2.12 version 0.4.0 is released. Learn to use classy-cats_2.12 version 0.4.0 in Maven based Java projects
Maven dependency for com.47deg - classy-cats_2.11 version 0.4.0 is released. Learn to use classy-cats_2.11 version 0.4.0 in Maven based Java projects
Maven dependency for com.47deg - classy-cats_sjs0.6_2.11 version 0.4.0 is released. Learn to use classy-cats_sjs0.6_2.11 version 0.4.0 in Maven based Java projects
Maven dependency for com.47deg - classy-cats_sjs0.6_2.12 version 0.4.0 is released. Learn to use classy-cats_sjs0.6_2.12 version 0.4.0 in Maven based Java projects
Maven dependency for com.47deg - classy-core_2.11 version 0.4.0 is released. Learn to use classy-core_2.11 version 0.4.0 in Maven based Java projects
Maven dependency for com.47deg - classy-core_2.12 version 0.4.0 is released. Learn to use classy-core_2.12 version 0.4.0 in Maven based Java projects
Maven dependency for com.47deg - classy-core_sjs0.6_2.11 version 0.4.0 is released. Learn to use classy-core_sjs0.6_2.11 version 0.4.0 in Maven based Java projects
Maven dependency for com.47deg - classy-generic_2.11 version 0.4.0 is released. Learn to use classy-generic_2.11 version 0.4.0 in Maven based Java projects
Maven dependency for com.47deg - classy-generic_2.12 version 0.4.0 is released. Learn to use classy-generic_2.12 version 0.4.0 in Maven based Java projects
Maven dependency for com.47deg - classy-generic_sjs0.6_2.11 version 0.4.0 is released. Learn to use classy-generic_sjs0.6_2.11 version 0.4.0 in Maven based Java projects
Maven dependency for com.47deg - classy-generic_sjs0.6_2.12 version 0.4.0 is released. Learn to use classy-generic_sjs0.6_2.12 version 0.4.0 in Maven based Java projects

Ads