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?

Reply via email to