Showing posts with label DECLARATION OF ABSTRACT METHODS.. Show all posts
Showing posts with label DECLARATION OF ABSTRACT METHODS.. Show all posts

Tuesday, 21 January 2014

ABSTRACT CLASSES AND METHODS IN JAVA

How to declare abstract class and abstract methods in java 

USING ABSTRACT CLASSES


A class which can not be instantiated is known as abstract class.If a class contain any abstract method then the class is declared as abstract method.It must be overridden. An abstract class must be extended and in a same way abstract method must be overridden.Abstract method has no body,it  always end the declaration with a semicolon(;).