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 a bank account number and corresponding current balance. The class contained both instance variables and instance methods. The interface and implementation declarations for this class is are reproduced below:
<pre>