SoftwareEngineering/src/labwork4/Main.java

19 lines
505 B
Java
Raw Normal View History

2024-03-09 18:14:49 +02:00
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();
}
}