Slide 57
Slide 57 text
public class Point {
private int x;
private int y;
private Point(int _x, int _y) {
this.x = _x;
this.y = _y;
}
public static Point of(int _x, int
_y) {
return new Point(_x,_y);
}
}
public inline class Point {
private int x;
private int y;
private Point(int _x, int _y) {
this.x = _x;
this.y = _y;
}
public static Point of(int _x, int
_y) {
return new Point(_x,_y);
}
}