Skip to Main Content
Swift for Beginners: Develop and Design, Second Edition
book

Swift for Beginners: Develop and Design, Second Edition

by Boisy G. Pitre
December 2015
Beginner content levelBeginner
336 pages
9h 13m
English
Peachpit Press
Content preview from Swift for Beginners: Develop and Design, Second Edition

Chapter 5. Organizing with Classes and Structures

Swift is an object-oriented language, and as such, it is apropos to devote considerable real estate to the subject. If you are familiar with other object-oriented languages, such as Objective-C and C++, the concepts presented here will be very familiar to you. If you are new to the idea of object-oriented programming (OOP), don’t be alarmed. I’ll take you through a tour of the concepts to prepare you for Swift’s flavor of OOP.

No matter what your current familiarity is with OOP concepts, preparing yourself with a new playground file in Xcode 7 is a good idea. Choose File > New > Playground, and save your new playground file as Chapter 5.playground. You’ll use this playground for all the examples ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Swift for Beginners: Develop and Design

Swift for Beginners: Develop and Design

Boisy G. Pitre
Swift For Dummies

Swift For Dummies

Jesse Feiler

Publisher Resources

ISBN: 9780134289793Purchase book