Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Swift iOS Programming for Kids
  • Table Of Contents Toc
  • Feedback & Rating feedback
Swift iOS Programming for Kids

Swift iOS Programming for Kids

By : D. Sommer, Campagno
4.2 (5)
close
close
Swift iOS Programming for Kids

Swift iOS Programming for Kids

4.2 (5)
By: D. Sommer, 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 (15 chapters)
close
close
2
2. Getting Set Up
10
10. Pokémon Battle
13
13. Space Pizza Delivery

Modeling real-world objects

To get a better understanding of how we can model objects in OOP, let's try to go through a couple of examples from the real world. As you will see, there are a lot of similarities when we try to model real-world objects and objects in our programs.

Modeling a mug

Using our knowledge about what OOP is, let's look at a more concrete example. Let's take a look at the object in the following photograph:

Modeling a mug

Using our real-world knowledge combined with common sense, what could be some characteristics of this mug? Instead of considering the actual values or the specifics of the mug, let's try to come up with a set of properties this mug has. We could say that the mug has a color which is the color of the ceramic, which in this case is white. We could also say something about the print on the mug. Perhaps we could generalize this into being an image or print that a mug can have. Maybe we could also model the material of the mug, which...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY