given class A, which has a two int constructor (int, int). If I have a function, that needs to build a return object, it can be done by creating an anonymous A object directly in the statement code example
Example: how to create a function that returns in java
// a method for computing the area of the rectangle
public int getArea() {
return width * height;
}