Results 1 to 3 of 3

Thread: differences between interface and abstract class

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2004
    Posts
    222

    differences between interface and abstract class

    what are the differences between interface and abstract class?
    When should I use abstract class and when interface?

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Re: differences between interface and abstract class

    Kinda a hard question to sum up in a few lines but interfaces usually define a "has a" relationship whereas abstract classes define a "is a" relationship. ie A car has a console. A Circle is a Shape.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2004
    Posts
    222

    Re: differences between interface and abstract class

    Thanks
    It would be great if you give some examples(codes).

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