Updated formatting of documentation plus a little reorganization.
[cmake.git] / Tests / SwigTest / example.h
blob46d90136108dacaf62ab45bf1d82914e0b768d79
1 /* File : example.h */
3 class Shape {
4 public:
5 Shape() {
6 nshapes++;
8 virtual ~Shape() {
9 nshapes--;
11 double x, y;
12 void move(double dx, double dy);
13 virtual double area(void) = 0;
14 virtual double perimeter(void) = 0;
15 static int nshapes;
18 class Circle : public Shape {
19 private:
20 double radius;
21 public:
22 Circle(double r) : radius(r) { };
23 virtual double area(void);
24 virtual double perimeter(void);
27 class Square : public Shape {
28 private:
29 double width;
30 public:
31 Square(double w) : width(w) { };
32 virtual double area(void);
33 virtual double perimeter(void);