Abstract and Interface

Discussion in 'Programming' started by Thomasan, Feb 21, 2010.

  1. #1
    Please anyone Help...in many interview ...interviewer always ask..

    What is difference between Abstract class and Interface?

    I do not satisfied the interviewer ...please anyone Clearly Explain it..

    Thanks..
     
    Thomasan, Feb 21, 2010 IP
  2. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Definition of abstract class
    Also called an "abstract superclass," in object technology, it is a class created as a master structure. No objects of an abstract class are created, rather subclasses of the abstract class are defined with their own variations, and the subclasses are used to create the actual objects.

    Definition of interface
    A interface defines a set of methods but does not implement them. A class that implements the interface agrees to implement all of the methods defined in the interface, thereby agreeing to certain behaviour.

    See Abstract Class versus Interface

    and

    Difference Between abstract Class and Interface
     
    NeoCambell, Feb 22, 2010 IP