java:initializing_classes_and_constructors
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
java:initializing_classes_and_constructors [2020/09/16 17:58] – [equals(other)] mithat | java:initializing_classes_and_constructors [2020/09/16 18:15] (current) – [equals(other)] mithat | ||
---|---|---|---|
Line 153: | Line 153: | ||
<code java> | <code java> | ||
public boolean equals(ClickerCounter other) { | public boolean equals(ClickerCounter other) { | ||
- | return (this.count == other.getCount() | + | return (this.count == other.count && |
- | this.maxCount == other.getMaxCount()); | + | this.maxCount == other.maxCount); |
} | } | ||
</ | </ |
java/initializing_classes_and_constructors.txt · Last modified: 2020/09/16 18:15 by mithat