Инициализация типов / Структуры

import java.awt.*;

Size size = new Size(1010);
Point point = new Point(55);
Rectangle rect = new Rectangle(size, point);

System.out.println(rect.point.top);

//The Java language has no structures       
class Size {
    public int width, height; 

    public Size (int width, int height) {
        this.width = width;
        this.height = height;
    }
}

class Point {
    public int top, left; 

    public Point (int top, int left) {
        this.top = top;
        this.left = left;
    }
}

class Rectangle {
    public Size size;
    public Point point; 

    public Rectangle (Size size, Point point) {
        this.size = size;
        this.point = point;
    }
}