You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -292,6 +292,7 @@ public Fraction add(Fraction otherFrac) {
292
292
}
293
293
</code>
294
294
</program>
295
+
</listing>
295
296
296
297
<p>
297
298
First you will notice that the <c>add</c> method is declared as <c>public Fraction</c> The <c>public</c> part means that any other method may call the <c>add</c> method.
@@ -304,8 +305,8 @@ public Fraction add(Fraction otherFrac) {
304
305
So the following version of the code is equivalent:
0 commit comments