Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Object???Oriented Programming with Swift 2

You're reading from  Object???Oriented Programming with Swift 2

Product type Book
Published in Jan 2016
Publisher
ISBN-13 9781785885693
Pages 332 pages
Edition 1st Edition
Languages
Author (1):
Gaston C. Hillar Gaston C. Hillar
Profile icon Gaston C. Hillar

Table of Contents (16) Chapters

Object–Oriented Programming with Swift 2
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Objects from the Real World to Playground 2. Structures, Classes, and Instances 3. Encapsulation of Data with Properties 4. Inheritance, Abstraction, and Specialization 5. Contract Programming with Protocols 6. Maximization of Code Reuse with Generic Code 7. Object-Oriented Programming and Functional Programming 8. Extending and Building Object-Oriented Code Exercise Answers Index

Exercises


Now that you understand what an object is, it is time to recognize objects in different applications.

  • Exercise 1: Work with an iOS app and recognize its objects. Work with an app that has both an iPhone and iPad version. Execute the app in both versions and recognize the different objects that the developers might have used to code the app. Create an UML diagram with the classes that you would use to create the app. Think about the methods and properties that you would require for each class. If the app is extremely complex, just focus on a specific feature.

  • Exercise 2: Work with a Mac OS X application and recognize its objects. Execute the app and work with a specific feature. Recognize the objects that interact to enable you to work with the feature. Write down the objects you recognized and their required behaviors.

You have been reading a chapter from
Object???Oriented Programming with Swift 2
Published in: Jan 2016 Publisher: ISBN-13: 9781785885693
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 $15.99/month. Cancel anytime}