Results 1 to 2 of 2

Thread: Abstract Class and Interface

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2005
    Posts
    70

    Red face Abstract Class and Interface

    What are abstract class and Interface are used for in OOP? Is there any examples to show the advantages of using abstract class or Interface? Please give me detail.

  2. #2
    Addicted Member SpS's Avatar
    Join Date
    Jul 2005
    Posts
    201

    Re: Abstract Class and Interface

    If you would have taken pain to looked into your book then you wouldn't have asked this question...these basic concepts are clearly mentioned in every book.
    anywys take a look at this

    Abstract Class
    An abstract class, or abstract base class (ABC), is one that is designed only as a parent class and from which child classes may be derived, and which is not itself suitable for instantiation. Abstract classes are often used to represent abstract concepts or entities. The incomplete features of the abstract class are then shared by a group of sibling sub-classes which add different variations of the missing pieces.

    Interface
    An interface is similar to an abstract class in that its members are not implemented. In interfaces, none of the methods are implemented. There is no code at all associated with an interface.
    #Appreciate others by rating good posts !!

    #The Software Peter Principle is in operation when unwise developers "improve" and "generalize" the software until they themselves can no longer understand it, then the project slowly dies.

    #People who are still ignorant of their ignorance are dangerous.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width