Java, Architecture, Clean Code, Solid, Programming.
height) { this.width = width; this.height = height; } @Override public double calculateArea() { return width * height; } } class Square implements Shape { private final double side; public Square(double side) { this.side = side; } // Not applicable for all shapes, violating the principle @Override