Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

What is an abstract class?

Category: Java

Abstract classes are used in java to create a class with some default method implementation for subclasses. An abstract class can have abstract method without body and it can have methods with implementation also.
abstract keyword is used to create an abstract class. Abstract classes can’t be instantiated and mostly used to provide base for sub-classes to extend and implement the abstract methods and override or use the implemented methods in abstract class.

Leave a Reply

Your email address will not be published. Required fields are marked *