Changes

Objective-C Inheritance

269 bytes added, 20:05, 21 October 2009
Inheritance, Classes and Subclasses
Classes need not only be derived from a root class. For example, a subclass can also inherit from another subclass with the potential to create large and complex class hierarchies.
 
== An Objective-C Inheritance Example ==
 
As with most programming concepts the subject of inheritance in Objective-C is perhaps best illustrated with an example. In the we created a class called BankAccount. The declaration of this class is reproduced below:
 
<pre>