What is abstract modifier in Java?

What is abstract modifier in Java?



Abstract is keyword in java which can be used with class and the method.
If You define the any method as abstract in any class then you don't need to provide the implementation of that method but, its child concrete class must have to provide the  implementation of it.

If you declare any method as abstract in any class you must have to declare the class as abstract. but if the class is abstract that does not mean that you will have the abstract method in it.


Comments

Popular posts from this blog

How do I create an array of a string?

Explain briefly about POJO in Java?