> I have multiple types with similar methods. I want to abstract over them by writing an interface, like I would in Java: > public interface Shape { > public float area(); > } > > class Circle implements ...