DEV Community

Antonio
Antonio

Posted on

lesson 15 discussion

  1. 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.
  2. In swift, a structure is defined is a single file so that it is less code for the programmer to type

Top comments (0)