Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
QuestionWhatever Happened to Multiple Inheritance? Pin
Roger Wright9-Jun-08 19:46
professionalRoger Wright9-Jun-08 19:46 
AnswerRe: Whatever Happened to Multiple Inheritance? Pin
Vikram A Punathambekar9-Jun-08 21:20
Vikram A Punathambekar9-Jun-08 21:20 
GeneralRe: Whatever Happened to Multiple Inheritance? Pin
Roger Alsing10-Jun-08 1:13
Roger Alsing10-Jun-08 1:13 
GeneralRe: Whatever Happened to Multiple Inheritance? Pin
Vikram A Punathambekar10-Jun-08 4:46
Vikram A Punathambekar10-Jun-08 4:46 
GeneralRe: Whatever Happened to Multiple Inheritance? Pin
Roger Wright10-Jun-08 8:08
professionalRoger Wright10-Jun-08 8:08 
AnswerRe: Whatever Happened to Multiple Inheritance? Pin
Colin Angus Mackay9-Jun-08 22:22
Colin Angus Mackay9-Jun-08 22:22 
GeneralRe: Whatever Happened to Multiple Inheritance? Pin
Roger Wright10-Jun-08 8:07
professionalRoger Wright10-Jun-08 8:07 
AnswerRe: Whatever Happened to Multiple Inheritance? Pin
#realJSOP10-Jun-08 0:22
professional#realJSOP10-Jun-08 0:22 
Multiple inheritance is dead. If you want to do real programming, you have to stick with a real language.

I actually used multiple inheritance in MFC apps. In my particular case, I had to extend a base class, but I didn't want to actually change that class (I forget the specifics, but that's the gist of it). I simply added some data members and methods in a new class that was NOT derived from CObject, and changed the prototype for the derived class to inherit from it as well as the original base class. It work a treat and was the object of may ooohs/aaahs among the rest of the programming team because it was the first time they'd seen multiple inheritance used outside the classroom.

I guess what I'm trying to say that it wasn't widely used in C++, and Microsoft probably realized that. You're going to have to more carefully design your classes as a result, though.


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: Whatever Happened to Multiple Inheritance? Pin
Roger Wright10-Jun-08 8:09
professionalRoger Wright10-Jun-08 8:09 
AnswerRe: Whatever Happened to Multiple Inheritance? Pin
Mike Dimmick10-Jun-08 2:45
Mike Dimmick10-Jun-08 2:45 
GeneralRe: Whatever Happened to Multiple Inheritance? Pin
Roger Wright10-Jun-08 8:11
professionalRoger Wright10-Jun-08 8:11 
QuestionHow to execute some batch file that my FTP server contain ? Pin
Yanshof9-Jun-08 18:46
Yanshof9-Jun-08 18:46 
Questionhow to use the control of DevComponents.DotNetBar.SideBarPanelItem Pin
cqdong809-Jun-08 17:51
cqdong809-Jun-08 17:51 
QuestionDateTime.Now Pin
George_George9-Jun-08 17:32
George_George9-Jun-08 17:32 
AnswerRe: DateTime.Now Pin
Christian Graus9-Jun-08 17:47
protectorChristian Graus9-Jun-08 17:47 
GeneralRe: DateTime.Now Pin
George_George9-Jun-08 18:48
George_George9-Jun-08 18:48 
GeneralRe: DateTime.Now Pin
Christian Graus9-Jun-08 18:57
protectorChristian Graus9-Jun-08 18:57 
GeneralRe: DateTime.Now Pin
George_George9-Jun-08 19:03
George_George9-Jun-08 19:03 
GeneralRe: DateTime.Now Pin
Christian Graus9-Jun-08 19:11
protectorChristian Graus9-Jun-08 19:11 
GeneralRe: DateTime.Now Pin
George_George9-Jun-08 19:49
George_George9-Jun-08 19:49 
GeneralRe: DateTime.Now Pin
Ashfield9-Jun-08 21:29
Ashfield9-Jun-08 21:29 
GeneralRe: DateTime.Now Pin
George_George9-Jun-08 22:22
George_George9-Jun-08 22:22 
GeneralRe: DateTime.Now Pin
#realJSOP10-Jun-08 2:56
professional#realJSOP10-Jun-08 2:56 
GeneralRe: DateTime.Now Pin
George_George10-Jun-08 3:00
George_George10-Jun-08 3:00 
AnswerRe: DateTime.Now Pin
PIEBALDconsult9-Jun-08 17:48
mvePIEBALDconsult9-Jun-08 17:48 

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.