Click here to Skip to main content
15,895,142 members

Survey Results

Multiple Inheritence   [Edit]

Survey period: 17 Mar 2002 to 24 Mar 2002

Do you use multiple inheritence when programming?

OptionVotes% 
Yes, I often derive from multiple classes13513.80
Yes, I occasionally derive from multiple classes37638.45
Yes, I use classes that are derived from multiple classes (but don't create these classes myself)909.20
No - I see no need19219.63
No - the language I use doesn't support MI444.50
No - I intentionally avoid MI.14114.42



 
GeneralMI the "right" way Pin
Ravi Bhavnani17-Mar-02 10:29
professionalRavi Bhavnani17-Mar-02 10:29 
GeneralRe: MI the "right" way Pin
Nemanja Trifunovic17-Mar-02 14:04
Nemanja Trifunovic17-Mar-02 14:04 
GeneralRe: MI the "right" way Pin
Tomasz Sowinski18-Mar-02 4:57
Tomasz Sowinski18-Mar-02 4:57 
GeneralI love it. Pin
Giles17-Mar-02 9:09
Giles17-Mar-02 9:09 
GeneralRe: I love it. Pin
Nemanja Trifunovic17-Mar-02 14:06
Nemanja Trifunovic17-Mar-02 14:06 
GeneralRe: I love it. Pin
Bernhard18-Mar-02 19:14
Bernhard18-Mar-02 19:14 
GeneralRe: I love it. Pin
Giles19-Mar-02 11:29
Giles19-Mar-02 11:29 
GeneralATL/C# Pin
Christian Graus16-Mar-02 23:19
protectorChristian Graus16-Mar-02 23:19 
I dunno about MFC, but ATL sure as anything derives from multiple classes, every time. So of course I use it, indirectly Smile | :)

I would have liked a 'No, I've never had the need' option though, as opposed to I don't SEE the need, which is quite a different thing. I guess this question stems from C# not supporting MI ? I'm using C# right now, and let me take this opportunity to whine about it.

Why, oh why, does this not work ?

Bitmap b;
Bitmap c = b.Clone(); 


Even though they are both Bitmaps, I need to CAST the return from b.Clone() to a Bitmap for it to compile. I am starting to love parts of the IDE though - collapsible code rules, I dunno how I lived without it, from a navigation point of view. I love public members declared with get/set methods. I'm getting used to the way I declare event handlers through the IDE ( give me a chance and I'll get to doing it with delegates, I am sure ).

Overall, I still think I prefer C++, but I'm starting to enjoy C# nonetheless. To bring myself back to the subject, I think interfaces are somewhat of a compiler copout, but I think this survey will show that most people think MI is a good idea, while still hardly ever using it in their own code. I know I tend to chase down language features and play with them in my own time ( with a view to bringing them into my production code if they are useful ), but although I've always known about MI, I've never had a reason to use it.


Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
GeneralRe: ATL/C# Pin
David Wengier17-Mar-02 2:07
David Wengier17-Mar-02 2:07 
GeneralRe: ATL/C# Pin
Russell Morris17-Mar-02 6:57
Russell Morris17-Mar-02 6:57 
GeneralRe: ATL/C# Pin
Daniel Lohmann17-Mar-02 9:11
Daniel Lohmann17-Mar-02 9:11 

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.