View RSS Feed

Java Object

Object-oriented programming in Java.

  1. Abstract Methods

    by , 04-26-2012 at 06:01 PM
    If you desire a particular method to be present in a class and actual methodís implementation be determined by the help of a child class then you must be declaring methods which are present in parent class, as an abstract.
    A method to be declard as an abstract, abstract keyword is being used. There is no method body in abstract method but do have a method signature.
    Signatures of abstract methods are followed by semicolon and they have no definition:
    Java Code:
    public abstract
    ...
    Categories
    Polymorphism