January 2022
Intermediate to advanced
1078 pages
21h 44m
English
Putting Methods and Interfaces in Context
Question | Answer |
|---|---|
What are they? | Methods are functions that are invoked on a struct and have access to all of the fields defined by the value’s type. Interfaces define sets of methods, which can be implemented by struct types. |
Why are they useful? | These features allow types to be mixed and used through ... |
Read now
Unlock full access