34,333
edits
Changes
→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: