Shape

public abstract sealed interface demo.Shape permits Point[source]

Something with a position; only Point implements it.

Methods

x()

Returns the horizontal coordinate.

public abstract int x()[source]

Returns the horizontal coordinate.

Returns:

the coordinate