what is Abstract Class?

An Abstract class is a class which contain zero or more abstract methods.

Important points about Abstract class

1:-nobody make a instance of abstract class

2:-abstract class have zero or more abstract method  without body

3:- abstract class allow normal method with body

4:-constructor are also allow in abstract class.

5:-all type of variable are allow in abstract class(static ,final,instance)

6:- abstract class must be extended abstractmethod:-  you must override the abstract method

7:- when subclass extends the abstract class then subclass override all the method of abstract class otherwise declare subclass as abstract 


Post a Comment