Book Image

Swift iOS Programming for Kids

By : Steffen D. Sommer, Jim Campagno
Book Image

Swift iOS Programming for Kids

By: Steffen D. Sommer, Jim Campagno

Overview of this book

This book starts at the beginning by introducing programming through easy to use examples with the Swift Playgrounds app. Kids are regularly encouraged to explore and play with new concepts to support knowledge acquisition and retention – these newly learned skills can then be used to express their own unique ideas. Children will be shown how to create their first iOS application and build their very own movie night application.
Table of Contents (21 chapters)
Swift iOS Programming for Kids
About the Authors
About the Reviewer
Customer Feedback
Getting Set Up


In this chapter, the popular programming paradigm OOP was introduced. Without going into too many technical details, we looked at the characteristics of this pattern based on how Steve Jobs once explained what it is. We looked at several examples of how to apply this on a metaphorical level.

The second part of this chapter dived into how we can create classes in Swift. More precisely, we looked at the following things:

  • How to create classes

  • How to add instance properties to classes

  • How to add instance methods to classes

  • How objects can communicate with each other

The chapter ended with a program that combined a lot of what has been covered in this chapter, as well as in earlier chapters.

In the next chapter, we will continue building on what we have learned so far. We will be doing this by creating a small Pokémon game where we are able to create instances of Pokémons that are able to fight each other.