We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84bea05 commit c9a0352Copy full SHA for c9a0352
Assignment2/src/academy/pocu/comp2500/assignment2/ProductOption.java
@@ -9,17 +9,15 @@ public class ProductOption extends Product {
9
protected static final int ADD_COST = 5;
10
11
protected ProductOption() {
12
-
+
13
}
14
15
public void addAperture(Aperture aperture) {
16
this.apertures.add(aperture);
17
18
if (aperture.isValid()
19
- && aperture.getX() >= 0
20
- && aperture.getY() >= 0
21
- && aperture.getWidth() > 0
22
- && aperture.getHeight() > 0
+ && aperture.getX() >= 0 && aperture.getY() >= 0
+ && aperture.getWidth() > 0 && aperture.getHeight() > 0
23
&& aperture.getX() + aperture.getWidth() <= super.width
24
&& aperture.getY() + aperture.getHeight() <= super.height) {
25
super.price += ADD_COST;
0 commit comments