December 2013
Beginner
576 pages
16h 4m
English
As noted, the @implementation section contains the actual code for the methods you declared in the @interface section. You have to specify what type of data is to be stored in the objects of this class. That is, you have to describe the data that members of the class will contain. These members are called the instance variables. Just as a point of terminology, you say that you declare the methods in the @interface section and that you define them (that is, give the actual code) in the @implementation section. The general format for the @implementation section is as follows:
@implementation NewClassName{ memberDeclarations;} methodDefinitions;@end
NewClassName is the same name that ...
Read now
Unlock full access