Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to create object of abstract class in java

We cannot create objects of an abstract class. To implement features of an abstract class, we inherit subclasses from it and create objects of the subclass. A subclass must override all abstract methods of an abstract class. However, if the subclass is declared abstract, it's not mandatory to override abstract methods.
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #create #object #abstract #class #java
ADD COMMENT
Topic
Name
8+7 =