FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
September 01, 2004

C++ with Interfaces

(Page 4 of 5)

September, 2004: C++ with Interfaces

Listing 2

// HeronFront source file : shapes.hfront
// translated into target : shapes.hpp

interface IDrawable {
  void Draw() const;
};
interface IPostion {
  Point GetPos() const;
};
interface IMoveable {
  void MoveTo(const Point& x);
  void MoveBy(const Point& x);
};
interface ISizeable {
  void SetSize(int x);
  int GetSize() const;
};
interface IShape : IPositon, IDrawable, IMoveable, ISizeable {
};

Previous Page | 1 | 2 | 3 | 4 | 5 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK