So I'm trying to make an airship. I want it to inherit from Drake class for the "canfly" and from the LargeBoat class to make it look and act like a boat. My problem is, C# doesn't allow multiple inheritance. Anybody have any ideas?
 
An airship would not have enough in common with a Drake for inheritance to make sense anyway. I think in this case you might be better off using the concept of AOP or "Aspect Oriented Programming" rather than OOP. An airship would certainly be a Multi, and has many characteristics in common with a boat, so that would be your likely starting point. You will need a way to incorporate the "CanFly" property, so an Interface would seem appropriate.
 
There was an old "Movable Addons" release a while back on RunUO here.

This might be able to be used for what you're trying to do as well, if you'd prefer not to use multi's.
 

Active Shards

Donations

Total amount
$0.00
Goal
$500.00
Back