34,333
edits
Changes
→An Objective-C Inheritance Example
== 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 [[An Overview of Objective-C Object Oriented Programming]] we created a class called ''BankAccount'' designed to hold the a bank account number and corresponding current balance. The class contained both instance variables and instance methods. The declaration of this class is reproduced below:
<pre>
</pre>