O'Reilly logo

Objective-C Quick Syntax Reference by Matthew Campbell

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

CHAPTER 16

image

Defining Classes

Classes

I covered objects when I demonstrated the Objective-C objects used to work with strings, number, arrays, and dictionaries. Objects are an essential object-oriented programming pattern. While you will often simply use Foundation objects that are already set up for you, usually you will need to define your own types of objects customized for your app.

You can use classes to define your own object types. Classes are code definitions that are used to create objects. The primary purpose of coding class definitions is to express an entity that has attributes and behaviors.

Attributes are called properties when coding ...

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