Abstract Method & Classes

September 10th, 2006 Admin Posted in Abstract Method & Classes No Comments »

Abstract Method & classes

An abstract class can’t be a final class
If the subclass is not overriding the abstract method ,then it also becomes an abstract class

An abstract method has no body; it simply has a signature definition followed by a semicolon.

Eg:   public abstract  void  move( );

Any class with an abstract method is automatically abstract itself,  and must be declared as such.
An  abstract  class cannot be instantiated.
A class may be declared abstract even if it has  no abstract  methods. This prevents it  from being instantiated.

AddThis Social Bookmark Button