View Poll Results: base class VS. Iinterface
- Voters
- 3. You may not vote on this poll
-
Apr 25th, 2008, 08:44 AM
#1
Thread Starter
Hyperactive Member
base class VS. Iinterface
heard arguments pro and con regarding using interfaces in the place of base classes.
what sayeth ya'll
--"Tap Dancing On The Brittle Edge Of Sanity"--
-
Apr 25th, 2008, 09:15 AM
#2
Re: base class VS. Iinterface
Using interfaces in place of base classes? That makes no sense. They both have appropriate uses and one should not be able to "replace" the other otherwise your design is wrong.
Interfaces have a specific use. Base classes have a specific use. Sure you can use a base class in a similar fashion to an interface but if you don't need the benefits of the base class then it's pointless and counter-intuitive.
-
Apr 25th, 2008, 12:32 PM
#3
Re: base class VS. Iinterface
 Originally Posted by DirtyHowi
heard arguments pro and con regarding using interfaces in the place of base classes.
I'm with kasracer - got any links that you have read pros and cons on. I wouldn't mind reading them just to see what they have to say, and how a case could be built that it should ALWAYS be one or the other.
And you should add an "Both serve a purpose" option to your poll.
-
Apr 25th, 2008, 12:38 PM
#4
Re: base class VS. Iinterface
Yeah, where's the "Use the right tool for the right job option?"
-tg
-
Apr 25th, 2008, 01:36 PM
#5
Re: base class VS. Iinterface
 Originally Posted by DirtyHowi
heard arguments pro and con regarding using interfaces in the place of base classes.
what sayeth ya'll
Are these the same people that often pick up a patterns book, pick one at random, and wedge an application design around it just for the sake of using the pattern?
It's like arguing whether a hammer or a screwdriver is more useful.
-
Apr 25th, 2008, 03:50 PM
#6
Fanatic Member
Re: base class VS. Iinterface
It's like arguing whether a hammer or a screwdriver is more useful.
Depends on how big the butt of the screwdriver is.
Languages: Visual Basic 05/08, C# 08
IDE: Express Editions
Framework: 2.0, 3.0, 3.5
Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak
-
Apr 28th, 2008, 05:52 AM
#7
Re: base class VS. Iinterface
I'm with everyone above on this! I can't make a vote as each has their own use and value depending upon the task/section at hand.
Mendhak - "Golden hammer" anti-pattern comes to mind!!!
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
|