Click here to Skip to main content
16,017,241 members

Survey Results

Is support for inheriting from two or more classes a Good or Bad thing?   [Edit]

Survey period: 10 Apr 2005 to 16 Apr 2005

We can inherit from multiple interfaces in .NET but not from multiple classes. (suggested by Kamarey)

OptionVotes% 
It's Good Thing43335.46
It depends47638.98
It's a Bad Thing31225.55



 
GeneralRe: No more wishy-washy answers Pin
David Nash12-Apr-05 17:50
David Nash12-Apr-05 17:50 
GeneralLess is not more Pin
George11-Apr-05 12:28
George11-Apr-05 12:28 
GeneralRe: Less is not more Pin
Bob Stanneveld11-Apr-05 21:00
Bob Stanneveld11-Apr-05 21:00 
GeneralRe: Less is not more Pin
Nemanja Trifunovic12-Apr-05 3:13
Nemanja Trifunovic12-Apr-05 3:13 
GeneralRequired for policy based design and template metaprogramming Pin
Yves Tkaczyk11-Apr-05 5:11
Yves Tkaczyk11-Apr-05 5:11 
GeneralIt depends is so tempting... Pin
Nitron11-Apr-05 3:09
Nitron11-Apr-05 3:09 
GeneralDepends Pin
Navin11-Apr-05 3:09
Navin11-Apr-05 3:09 
GeneralDr Stroustrup's opinion Pin
Nemanja Trifunovic11-Apr-05 2:43
Nemanja Trifunovic11-Apr-05 2:43 
I'll just qoute Bjarne Stroustrup[^]:

People quite correctly say that you don't need multiple inheritance, because anything you can do with multiple inheritance you can also do with single inheritance. You just use the delegation trick I mentioned. Furthermore, you don't need any inheritance at all, because anything you do with single inheritance you can also do without inheritance by forwarding through a class. Actually, you don't need any classes either, because you can do it all with pointers and data structures. But why would you want to do that? When is it convenient to use the language facilities? When would you prefer a workaround? I've seen cases where multiple inheritance is useful, and I've even seen cases where quite complicated multiple inheritance is useful. Generally, I prefer to use the facilities offered by the language to doing workarounds.



My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
GeneralRe: Dr Stroustrup's opinion Pin
Nish Nishant11-Apr-05 6:02
sitebuilderNish Nishant11-Apr-05 6:02 
GeneralRe: Dr Stroustrup's opinion Pin
David Levitt (Myrddin)11-Apr-05 12:02
David Levitt (Myrddin)11-Apr-05 12:02 
GeneralRe: Dr Stroustrup's opinion Pin
Anonymous15-Apr-05 2:28
Anonymous15-Apr-05 2:28 
GeneralRe: Dr Stroustrup's opinion Pin
Nemanja Trifunovic12-Apr-05 3:10
Nemanja Trifunovic12-Apr-05 3:10 
GeneralRe: Dr Stroustrup's opinion Pin
David Wulff12-Apr-05 3:53
David Wulff12-Apr-05 3:53 
GeneralInterfaces are not substitutes for MI... Pin
Daniel Turini10-Apr-05 23:20
Daniel Turini10-Apr-05 23:20 
GeneralRe: Interfaces are not substitutes for MI... Pin
Vikram A Punathambekar11-Apr-05 2:43
Vikram A Punathambekar11-Apr-05 2:43 
GeneralRe: Interfaces are not substitutes for MI... Pin
Nemanja Trifunovic11-Apr-05 2:59
Nemanja Trifunovic11-Apr-05 2:59 
GeneralRe: Interfaces are not substitutes for MI... Pin
Vikram A Punathambekar11-Apr-05 6:03
Vikram A Punathambekar11-Apr-05 6:03 
GeneralI voted good, but.... Pin
Christian Graus10-Apr-05 12:28
protectorChristian Graus10-Apr-05 12:28 
GeneralRe: I voted good, but.... Pin
Toby Opferman10-Apr-05 16:17
Toby Opferman10-Apr-05 16:17 
GeneralRe: I voted good, but.... Pin
Bob Stanneveld10-Apr-05 21:20
Bob Stanneveld10-Apr-05 21:20 
GeneralRe: I voted good, but.... Pin
Toby Opferman10-Apr-05 23:04
Toby Opferman10-Apr-05 23:04 
GeneralRe: I voted good, but.... Pin
Aza11-Apr-05 2:22
Aza11-Apr-05 2:22 
GeneralRe: I voted good, but.... Pin
Giancarlo Aguilera11-Apr-05 4:51
Giancarlo Aguilera11-Apr-05 4:51 
GeneralRe: I voted good, but.... Pin
Toby Opferman11-Apr-05 7:07
Toby Opferman11-Apr-05 7:07 
GeneralRe: I voted good, but.... Pin
Aza11-Apr-05 21:12
Aza11-Apr-05 21:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.