Changes

Jump to: navigation, search

An Overview of Objective-C Object Oriented Programming

85 bytes added, 19:38, 14 October 2009
Declaring, Initializing and Releasing a Class Instance
</pre>
In the above statement we are calling the ''alloc'' method of the BankAccount class (note that ''alloc'' is a ''class method'' inherited from the parent ''NSObject'' class, as opposed to an ''instance method''created by us in the BankAccount class).
Having allocated memory for the class instance, the next step is to initialize the instance by calling the ''init'' instance method:

Navigation menu