Structures inheritance in Java

//In Java there are no structures
interface IText {
    String toText();
}

class Point implements IText {
    public int xy;

    public String toText() {
        return String.format("x = %d; y = %d"xy);
    }
}

class RedPoint extends Point { }