/
javapractice
/
JavaPractice
Обзор
Документация
Войти
/
javapractice
/
JavaPractice
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
2
CI/CD
Аналитика
develop
SOLID/src/main/java/ocp/shapeExample/wrongSchema/Rectangle.java
27 строк
514 B
Zexa91x0
SOLID - OCP
24 май 2021, 12:03
24 май 2021, 12:03
2656607
Код
Авторство
О чём код?
package ocp.shapeExample.wrongSchema; public class Rectangle { private double width; private double height; public Rectangle(double width, double height) { this.width = width; this.height = height; } public double getWidth() { return width; } public void setWidth(double width) { this.width = width; } public double getHeight() { return height; } public void setHeight(double height) { this.height = height; } }