Click here to Skip to main content
15,891,529 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Multiple recursion & recursion? Pin
Pascal Ganaye10-Jun-09 2:28
Pascal Ganaye10-Jun-09 2:28 
GeneralTOols of testings Pin
Ali_1008-Jun-09 23:53
Ali_1008-Jun-09 23:53 
GeneralRe: TOols of testings Pin
Simon P Stevens9-Jun-09 0:46
Simon P Stevens9-Jun-09 0:46 
GeneralRe: TOols of testings Pin
Colin Angus Mackay9-Jun-09 1:57
Colin Angus Mackay9-Jun-09 1:57 
GeneralRe: TOols of testings PinPopular
Pete O'Hanlon9-Jun-09 2:19
mvePete O'Hanlon9-Jun-09 2:19 
GeneralRe: TOols of testings Pin
Eddy Vluggen9-Jun-09 7:37
professionalEddy Vluggen9-Jun-09 7:37 
GeneralMultiple inheritance Pin
Ali_1008-Jun-09 23:52
Ali_1008-Jun-09 23:52 
GeneralRe: Multiple inheritance Pin
Simon P Stevens9-Jun-09 0:39
Simon P Stevens9-Jun-09 0:39 
It was a decision taken in the original design on C#. Multiple inheritance is deemed to complex, without enough benefits.

Inheritance is often described as an "is-a" relationship. I.e. a Car is-a vehicle so the car class inherits from vehicle. Usually, when people try and do things with multiple inheritance, what they are doing is forming a "has-a" relationship, which would be better represented as a class that contains the other class, rather than inherits from it. There aren't many cases where you have an object that is two separate types of sub objects. A Car is-a vehicle and a car also is-a ManMadeItem, but this forms a hierarchy (Car->Vehicle-ManMadeItem) so multiple inheritance isn't needed. If you look at your design, I think you'll find in almost all cases where you have multiple inheritance you can either change it to a hierarchy or a composition instead.

Even in languages that support it, it is general discouraged.

http://en.wikipedia.org/wiki/Multiple_inheritance#Criticisms[^].

There's an article here[^] about a possible way to achieve it in C#, but I don't recommend it for anything beyond academic interest.

Simon

GeneralRe: Multiple inheritance Pin
supercat99-Jun-09 12:50
supercat99-Jun-09 12:50 
GeneralRe: Multiple inheritance Pin
Baran M9-Jun-09 1:38
Baran M9-Jun-09 1:38 
GeneralRe: Multiple inheritance Pin
Colin Angus Mackay9-Jun-09 1:47
Colin Angus Mackay9-Jun-09 1:47 
Questionremoting and client devices that switch network cards on the fly Pin
Martijn van Kleef8-Jun-09 22:08
Martijn van Kleef8-Jun-09 22:08 
QuestionGet message "keyset does not exist" when attempting to publish Pin
swampwiz7-Jun-09 13:28
swampwiz7-Jun-09 13:28 
AnswerRe: Get message "keyset does not exist" when attempting to publish Pin
Mark Salsbery8-Jun-09 12:36
Mark Salsbery8-Jun-09 12:36 
GeneralRe: Get message "keyset does not exist" when attempting to publish Pin
swampwiz8-Jun-09 14:18
swampwiz8-Jun-09 14:18 
GeneralRe: Get message "keyset does not exist" when attempting to publish Pin
Mark Salsbery8-Jun-09 14:25
Mark Salsbery8-Jun-09 14:25 
GeneralRe: Get message "keyset does not exist" when attempting to publish Pin
swampwiz10-Jun-09 8:51
swampwiz10-Jun-09 8:51 
GeneralRe: Get message "keyset does not exist" when attempting to publish Pin
Mark Salsbery10-Jun-09 8:55
Mark Salsbery10-Jun-09 8:55 
QuestionDeployment Question - Client Profile Pin
Jammer7-Jun-09 10:40
Jammer7-Jun-09 10:40 
AnswerRe: Deployment Question - Client Profile Pin
Pete O'Hanlon7-Jun-09 11:11
mvePete O'Hanlon7-Jun-09 11:11 
GeneralRe: Deployment Question - Client Profile Pin
Jammer7-Jun-09 12:02
Jammer7-Jun-09 12:02 
GeneralRe: Deployment Question - Client Profile Pin
Pete O'Hanlon7-Jun-09 21:51
mvePete O'Hanlon7-Jun-09 21:51 
GeneralRe: Deployment Question - Client Profile Pin
Jammer7-Jun-09 22:52
Jammer7-Jun-09 22:52 
QuestionProblems with using series of PNG files as animations Pin
ddavor6-Jun-09 23:33
ddavor6-Jun-09 23:33 
AnswerRe: Problems with using series of PNG files as animations Pin
molesworth6-Jun-09 23:56
molesworth6-Jun-09 23:56 

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.