Click here to Skip to main content
15,895,486 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



 
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 
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 
Christian Graus wrote:
Why, oh why, does this not work ?

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


ICloneable.Clone() returns an object (type Object).

This is where I absolutely hate generic interfaces: I wish there was a way to be able to mark the return value (or anything else, for that matter) as the type that implements the interface. You know - something that can be done with simple C++ templates quite easily.

For instance, ICloneable.Clone would be like this:

public interface ICloneable
{
impl_type Clone();
}

so that any object that claimed to implement ICloneable would have to have a Clone() method that returned an object of that type, not a Clone() that returned an Object.

--
Russell Morris

"WOW! Chocolate - half price!" - Homer Simpson, while in the land of chocolate.
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.