- Methods belong to classes, structs, and enums. Functions is just a code that can do a specific task and can be added to any file outside of a particular type.
- In swift, a structure is defined is a single file so that it is less code for the programmer to type
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)