User Tools

Site Tools


java:initializing_classes_and_constructors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
java:initializing_classes_and_constructors [2020/09/16 17:58] – [equals(other)] mithatjava: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);
 } }
 </code> </code>
java/initializing_classes_and_constructors.1600279133.txt.gz · Last modified: 2020/09/16 17:58 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki