Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Swift iOS Programming for Kids

You're reading from   Swift iOS Programming for Kids Help your kids build simple and engaging applications with Swift 3.0

Arrow left icon
Product type Paperback
Published in Mar 2017
Publisher Packt
ISBN-13 9781787120747
Length 260 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Steffen D. Sommer Steffen D. Sommer
Author Profile Icon Steffen D. Sommer
Steffen D. Sommer
Jim Campagno Jim Campagno
Author Profile Icon Jim Campagno
Jim Campagno
Arrow right icon
View More author details
Toc

String and Int

There are only a few things on this Earth that are better than ice cream. we're just having trouble naming them. How is ice cream actually made? Well, it is made in an ice cream factory. This factory is able to create different flavors and toppings.

What about cars, how are cars made? Similar to ice cream, a car is made in a car factory. A car factory can create all kinds of different cars that we can drive around.

In Swift, there are many factories built into the language that are available for us to use. However, Swift doesn't refer to them as factories, it refers to them as types

When a car factory creates a car, the car that is now in your possession is referred to as an instance of car (in Swift, types begin with an uppercase letter). Having your own instance of a car is like having a car in your driveway that you're able to use whenever you want, it's yours! You could drive it, park...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image