Skip to content

Commit

Permalink
Add default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
crater2150 committed Mar 20, 2019
1 parent f13de66 commit f048fa1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ <h3 style="text-align: center;">methods</h3>
<tr><td></td><td><pre><code class="language-scala">def f(arg0: Int, arg1: Int): Unit
f(arg0 = 3, arg1 = 4)
f(arg1 = 4, arg0 = 3)</code></pre></td></tr>
<tr><td><pre><code class="language-java">int f(int a){
return f(a, 0);
}
int f(int a, int b) {
return a + b
}</code></pre></td><td><pre><code class="language-scala">def f(a: Int, b: Int = 0): Int = a + b</code></pre></td></tr>
</table>
<h3 style="text-align: center;">statics</h3>
<table style="margin-left:auto; margin-right:auto;">
Expand Down

0 comments on commit f048fa1

Please sign in to comment.