Changes

Jump to: navigation, search

Objective-C Inheritance

1 byte added, 19:20, 22 October 2009
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>

Navigation menu