34,333
edits
Changes
→Structuring Object-Oriented Objective-C Code
== Structuring Object-Oriented Objective-C Code ==
Our example is currently contained within a single source file. In practice, the convention is to place the interface and implementation in their own include files that are then ''included'' in the program source fileand complication. Generally the interface section is contained within a file called ''ClassName.h'' where ''ClassName'' is the name of the class. In our case, we would create a file called ''BankAccount.h'' containing the following:
<pre>