O'Reilly logo

iOS 9 SDK Development by Janie Clayton, Chris Adamson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Classes

Many programmers—professionals and students, hobbyists and cowboy coders—have grown up in the mind-set of object-oriented programming. As Janie once said on the NSBrief podcast, “I didn’t think I was learning object-oriented programming. I thought I was learning programming…like that was the only way to do it.”

And it’s not like anyone’s wrong to learn OO! It’s the dominant paradigm for a good reason: it has proven over the decades to be a good way to write applications. Whole languages are built around the concepts of OO: it’s nigh-impossible to break out of the OO paradigm in Java, and Objective-C has OO in its very name, after all!

So let’s see how Swift supports object-oriented programming. The heart and soul of OO is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required