Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
3lbert committed Apr 10, 2024
1 parent 083048a commit cd28a1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -523,23 +523,23 @@ <h4>Solusi</h4>
<pre>
<code>
<strong>
class Order {
<span class="a">class</span> <span class="b">Order</span> <span class="c">{</span>
private OrderStatus orderStatus;

public boolean isShipped() {
return orderStatus.isShipped();
}
}
<span class="c">}</span>

class OrderStatus {
<span class="a">class</span> <span class="b">OrderStatus</span> <span class="c">{</span>
public boolean isShipped() {
// Check if the order is shipped
}

public boolean isNotShipped() {
return !isShipped();
}
}
<span class="c">}</span>
</strong>
</code>
</pre>
Expand Down

0 comments on commit cd28a1c

Please sign in to comment.