1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C# Abstract classes

Discussion in 'C#' started by advaster, Oct 30, 2006.

  1. advaster

    advaster New Member

    Joined:
    Oct 3, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Hello everybody

    Can someone help with the explanation of the abstract classes. Why should I use abstact

    classes it will be empty class for derived classes, what will they derive.

    Thanx in advance.

    :)
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    An abstract class, is one that is designed only as a parent class and from which child classes may be derived, and which is not suitable for instantiation.
    To give the same interface to all the derived classes
    They will derive classes.
     
  3. advaster

    advaster New Member

    Joined:
    Oct 3, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Thanx for help shabbir

    :)
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    My pleasure.
     

Share This Page