multiple inheritance

Namespace rswhite4 at googlemail.com
Sun Jul 8 10:31:54 PDT 2012


How can i implement C++ behaviour like this:

class Shape : Drawable, Transformable {
class Sprite : Drawable {
class Image : Transformable {
?

One way is to declare Transformable or Drawable as interface.
But what if i have more then one class which implements 
Transformable/Drawable and i wouldn't rewrite the implementation 
of Transformable/Drawable in every class again?


More information about the Digitalmars-d-learn mailing list