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