Sunday, July 25, 2010

Interfaces Vs. Abstract Classes

Compare and Contrast Java Interfaces and Abstract Classes

2 comments:

  1. Abstract classes
    An abstract class is a class which decleared with key word abstract.An abstract class can or canot have an abstract method.Abstract classes cannot be instantiated, but they can be subclassed.

    Interface
    an interface is a group of related methods with empty bodies

    ReplyDelete
  2. This is regarding Dinidu's idea;

    "an interface is a group of related methods with empty bodies" means "ABSTRACT". Here in interfaces methods are abstract by default..

    Good!

    What else you can find?

    ReplyDelete