Add description about default method parameters.
This commit is contained in:
parent
712b72f649
commit
a2590db3f5
1 changed files with 2 additions and 1 deletions
|
|
@ -440,7 +440,8 @@ Scala has proven the most viable way to do it, as long as you keep the following
|
||||||
|
|
||||||
1. Traits that are part of the Java API should only be used to define pure interfaces, as soon as there are implementations of methods, prefer
|
1. Traits that are part of the Java API should only be used to define pure interfaces, as soon as there are implementations of methods, prefer
|
||||||
`abstract class`.
|
`abstract class`.
|
||||||
|
|
||||||
|
1. Any method definition in a class that will be part of the Java API should not use any default parameters, as they will show up ugly when using them from Java, use plain old method overloading instead.
|
||||||
|
|
||||||
|
|
||||||
### Overview of Scala types and their Java counterparts
|
### Overview of Scala types and their Java counterparts
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue