|
-
Jul 25th, 2005, 01:23 AM
#1
Thread Starter
Addicted Member
differences between interface and abstract class
what are the differences between interface and abstract class?
When should I use abstract class and when interface?
-
Jul 25th, 2005, 01:38 AM
#2
Dazed Member
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.
-
Jul 25th, 2005, 01:44 AM
#3
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|