November 2012
Beginner
480 pages
12h 18m
English
Objects are the basis for object-oriented programming. This chapter gets down to the business of making objects. The chapter is divided into five main sections:
• Defining classes
• Extending classes by subclassing
• Creating objects (instances of a class)
• Destroying objects
• Copying objects
Some of these topics were covered briefly in Chapter 3, “An Introduction to Object-Oriented Programming.” They are presented here in greater detail.
When you define an Objective-C class, you have to provide the compiler with two sets of information. The first set is essentially a blueprint for constructing instances of the class. You have to specify the class’s name, the class’s superclass, a list of the names and ...
Read now
Unlock full access