/
Vini1979
/
Java_OOP
Обзор
Документация
Войти
/
Vini1979
/
Java_OOP
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Lecture_05/Ex003Math/Client/Program.java
40 строк
1 KB
Evgeny
Added Seminar_05
11 апр 2023, 23:42
11 апр 2023, 23:42
057a1aa
Код
Авторство
О чём код?
package Ex003Math.Client; import Ex003Math.Mathematics.Exceptions.UnacceptableValueException; import Ex003Math.Mathematics.CalculateArea.CalculateArea; import Ex003Math.Mathematics.Shapes.Canvas; import Ex003Math.Mathematics.Shapes.Circle; import Ex003Math.Mathematics.Shapes.Rectangle; import Ex003Math.Mathematics.Shapes.Shape; public class Program { public static void main(String[] args) throws UnacceptableValueException { new App().start(); // #region // Shape shape1 = Circle.create(1, "Circle_1"); // Shape shape2 = Rectangle.create(2, 3, "Rectangle_2"); // Shape shape3 = Circle.create(4, "Circle_3"); // Shape shape4 = Rectangle.create(5, 6, "Rectangle_4"); // Shape shape5 = Rectangle.create(7, 8, "Rectangle_5"); // Shape shape6 = Circle.create(9, "Circle_6"); // Canvas canvas = new Canvas("Canvas"); // shape2.shapes.add(shape1); // shape4.shapes.add(shape2); // shape4.shapes.add(shape3); // shape6.shapes.add(shape4); // shape6.shapes.add(shape5); // canvas.shapes.add(shape6); // System.out.println(canvas); // #endregion } }