How to convert Java code to C++ with aspects?

  aspect, c++, java

I have this Java code:

  class Line implements FigureElement{
  private Point p1, p2;

  Point getP1() { return p1; }
  Point getP2() { return p2; }

  void setP1(Point p1) { this.p1 = p1; }
  void setP2(Point p2) { this.p2 = p2; }
}

class Point implements FigureElement {
  private int x = 0, y = 0;

  int getX() { return x; }
  int getY() { return y; }

  void setX(int x) { this.x = x; }
  void setY(int y) { this.y = y; }
}

would like to transform it to C++ with AspectsC++, have tried everything but cant make it work, could anyone with experience on it help me ?

Source: Windows Questions C++

LEAVE A COMMENT