July 10th, 2008, 08:40 AM
Re: Diamond Inheritance Problem - C#
Well, .NET certainly don't support multiple inheritance, but by using a wrapper class you can solve the problem:
Altought it's recommended to use interfaces instead.
class AllRounderWrapper : Bowler
class AllRounderInsider : Batsman
And besides, I can't see why what you're doing is good for. Maybe the upsidedown proccess will be useful: derive from Batsman & Bowler from a base class, as you acually already did in the code above.
Click Here to Expand Forum to Full Width