Assume I have the following java class
public class Square {
private Long id;
private double sideLength;
public void setSideLength(double sideLength) {
this.sideLength = sideLength;
}
public double getSideLength() {
return this.sideLength;
}
public double getArea() {
return sideLength * sideLength;
}
//another methods...
}
Inside an actionscript class, using RemoteObject, I invoke the java method SquareDAO.findById(Long id) an I get an Object with the following:
object.id
object.sideLength
But I don't get the area. How can I invoke the method getArea() ?