Мне нужно сравнить две фигуры, чтобы определить, какая из них больше или меньше другой, используя сопоставимый интерфейс
#java #interface #comparable Вопрос: public abstract class Shape { protected int height; protected int width; public Shape(int height, int width) { this.height = height; this.width = width; } public final…