E-book details

Object-Oriented Programming with Swift 2. Click here to enter text

Object-Oriented Programming with Swift 2. Click here to enter text

Gaston C. Hillar

Ebook
Object-Oriented Programming (OOP) is a programming paradigm based on the concept of objects; these are data structures that contain data in the form of fields, often known as attributes and code. Objects are everywhere, and so it is very important to recognize elements, known as objects, from real-world situations and know how they can easily be translated into object-oriented code.

Object-Oriented Programming with Swift is an easy-to-follow guide packed full of hands-on examples of solutions to common problems encountered with object-oriented code in Swift. It starts by helping you to recognize objects using real-life scenarios and demonstrates how working with them makes it simpler to write code that is easy to understand and reuse.

You will learn to protect and hide data with the data encapsulation features of Swift. Then, you will explore how to maximize code reuse by writing code capable of working with objects of different types. After that, you'll discover the power of parametric polymorphism and will combine generic code with inheritance and multiple inheritance. Later, you move on to refactoring your existing code and organizing your source for easy maintenance and extensions.

By the end of the book, you will be able to create better, stronger, and more reusable code, which will help you build better applications.
  • 1. Objects from the real-world to the playground
  • 2. Structures, Classes and Instances
  • 3. Encapsulation of data with properties and subscripts
  • 4. Inheritance and typecasting
  • 5. Contract Programming with Protocols
  • 6. Maximization of Code Reuse with Generic Code
  • 7. Maximization of code reuse with generic code
  • 8. Object-oriented programming and functional programming
  • Title: Object-Oriented Programming with Swift 2. Click here to enter text
  • Author: Gaston C. Hillar
  • Original title: Object-Oriented Programming with Swift 2. Click here to enter text.
  • ISBN: 9781785884801, 9781785884801
  • Date of issue: 2016-01-28
  • Format: Ebook
  • Item ID: e_3d2r
  • Publisher: Packt Publishing