Monday, 3 February 2014

Abstract Method In Java?

Abstract:   


An abstract is a return Type.It must be a extended or sub class.a abstract class contain static data.Any class with an abstract method is automatically abstract itself .


Syntax : abstract class class_Name
               {

                     // Body
               }


Rules :

  • Abstract classes are not Interface.
  • An abstract class must have an abstarct method.
  • Abstract classes can have constructors,member variables and normal methods.
  • Abstract class Never instatiated.
  • When you extend abstarct class with abstarct method,you must define the abstract method in the child class.

1 comment:

  1. thanks for this post, keep it up for updating us, i am waiting for ur new article.
    IPL 2015 Cricket live score
    mps computers
    Harjinder Singh

    thanks again

    ReplyDelete