what is the abstract class and how to use in java programin?

Abstract class can contain both abstact methods and concrete methods. In a class, if one method is declared abstract, the class must be declared abstract. However, reverse of this is not necessarily true. I mean, if class is declared abstract class, it may not have abstract method in it.
What is abstract method?
        If a method does not provide actual implementation but just provides method signature, it is called abstract method. Actual implementation is left for the sub classes who extends abstract class.
What is concrete method?
        If a method provide actual implementation, it is called concrete method.
Abstract method can not be instantiated. It can only be extended by another class.

asked Sep 13, 2013 in Core java by anonymous
edited Sep 12, 2013
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.