Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Inheriting from a Class

We’ll start by taking a look at how to inherit one class from another. In fact, the programs you’ve been working with have already been inheriting classes from NSObject, and extending that capability to any class is easy.

Here, you’ll create one class, Class1, based on NSObject:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint