Programming in Swift: Functions & Types

Jan 4 2022 · Swift 5.5, iOS 15, Xcode 13

Part 4: Properties & Methods

36. Conclusion

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 35. Computed Properties or Methods? Next episode: Part 4 Quiz: Properties & Methods

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Notes: 36. Conclusion

Update Notes: This course was originally recorded in 2019. It has been reviewed and all content and materials updated as of October 2021.

Transcript: 36. Conclusion

Excellent job! You’ve reached the end of this part of the course.

You learned a lot of options for properties! You know how to make properties for instances or types. You can make stored properties that are set at initialization and ones that are lazily calculated the first time you access them.

You also know how to write computed properties that figure out their value every time you access them. You can define properties that are read-only, and ones where you can get and set the value. You also tried out property observers that let you react to the changing values of variables.

Finally, you took another look at methods and used them in both Structures and Enumerations. You also made two versions a methods: one meant to mutate the type, and one that didn’t.

In the next part of the course, you’ll learn some techniques specific to Classes. You’ll also learn more about Protocols, and see how they work together with all of the other named types.