Gastn C. Hillar
About the Author
Gastn C. Hillar is an Italian and has been working with computers since he was 8 years old. In the early 80s, he began programming with the legendary Texas TI-99/4A and Commodore 64 home computers. Gaston has a bachelor's degree in computer science and graduated with honors. He also holds an MBA in which he graduated with an outstanding thesis. At present, Gaston is an independent IT consultant and a freelance author who is always looking for new adventures around the world.
He has been a senior contributing editor at Dr. Dobb's and has written more than a hundred articles on software development topics. Gatson was also a former Microsoft MVP in technical computing. He has received the prestigious Intel Black Belt Software Developer award seven times.
He is a guest blogger at Intel Software Network (.
He lives with his wife, Vanesa, and his two sons, Kevin and Brandon.
About the Reviewers
Vinod Madigeri is a curious developer with a particular interest in object-oriented programming. He has worked in different industries (telecommunication, game technologies, and consumer electronics) writing software in C, C++, Objective-C, Swift, and C#.
Vinod is a passionate software engineer who writes code for fun. He has been doing this professionally for some 6 years and had been goofing with computers for 10 years before that.
Hugo Solis is an assistant professor in the physics department at University of Costa Rica. His current research interests are computational cosmology, complexity, and the influence of hydrogen on material properties. Hugo has wide experience with languages such as C/C++ and Python for scientific programming and visualization. He is a member of Free Software Foundation and has contributed code to a few free software projects. Hugo has also been a technical reviewer for Mastering Object-Oriented Python,Learning Object-Oriented Programming and Kivy: Interactive Applications in Python and the author of Kivy Cookbook , Packt Publishing . Currently, he is in charge of IFT, a Costa Rican scientific nonprofit organization for the multidisciplinary practice of physics (http://iftucr.org).
I'd like to thank my beloved mother, Katty Sanchez, for her support and vanguard thoughts.
www.PacktPub.com
Support files, eBooks, discount offers, and more
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at > for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.
Why subscribe?
- Fully searchable across every book published by Packt
- Copy and paste, print, and bookmark content
- On demand and accessible via a web browser
Free access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access.
To my sons, Kevin and Brandon, and my wife, Vanesa
Preface
Object-oriented programming, also known as OOP, is a required skill in any modern software developer job. It makes a lot of sense because object-oriented programming allows you to maximize code reuse and minimize maintenance costs. However, learning object-oriented programming is challenging because it includes too many abstract concepts that require real-life examples to be easy to understand. In addition, object-oriented code that doesn't follow best practices can easily become a maintenance nightmare.
Swift is a multi-paradigm programming language, and one of its most important paradigms is OOP. If you want to create great applications and apps for Mac, iPhone, iPad, Apple TV, and Apple Watch, you need to master OOP in Swift. In addition, as Swift also grabs the nice features found in functional programming languages, it is convenient to know how to mix OOP code with functional programming code.
This book will allow you to develop high-quality reusable object-oriented code in Swift 2.2. You will learn the object-oriented programming principles and how Swift implements them. You will learn how to capture objects from real-world elements and create object-oriented code that represents them. You will understand Swift's approach towards object-oriented code. You will maximize code reuse and reduce maintenance costs. Your code will be easy to understand, and it will work with representations of real-life elements.
What this book covers
, Objects from the Real World to Playground , teaches you the principles of object-oriented paradigms. We will discuss how real-world objects can become part of the fundamental elements of code. We will translate elements into the different components of the object-oriented paradigm supported in Swift: classes, protocols, properties, methods, and instances.