java:initializing_classes_and_constructors
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
java:initializing_classes_and_constructors [2020/09/16 17:54] – [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.count() && this.maxCount == other.maxCount); | + | return (this.count == other.count && |
+ | | ||
} | } | ||
</ | </ |
java/initializing_classes_and_constructors.1600278858.txt.gz · Last modified: 2020/09/16 17:54 by mithat