title | type | description | num | previous-page | next-page |
---|---|---|---|---|---|
Summary |
section |
This section summarizes the previous sections on Scala 3 methods. |
26 |
methods-main-methods |
fun-intro |
There’s even more to know about methods, including how to:
- Call methods on superclasses
- Define and use by-name parameters
- Write a method that takes a function parameter
- Create inline methods
- Handle exceptions
- Use vararg input parameters
- Write methods that have multiple parameter groups (partially-applied functions)
- Create methods that have type parameters
See the [Reference documentation][reference] for more details on these features.
[reference]: {{ site.scala3ref }}/overview.html