package labwork4; import java.awt.*; public class Main { public static void main(String[] args) { Point origin = new Point(0, 0); Point end = new Point(10, 13); API1Concrete api1Concrete = new API1Concrete(); API2Concrete api2Concrete = new API2Concrete(); Rectangle rectangle1 = new Rectangle(origin, end, api1Concrete); Rectangle rectangle2 = new Rectangle(origin, end, api2Concrete); rectangle1.draw(); rectangle2.draw(); } }