Table of Contents Previous Section
The Structure of init
The init method must begin with an invocation of super's init method and must end by returning self.
- init {Likewise, in Java, the constructor must begin with an invocation of the superclass's constructor (as with all Java classes):
self = [super init];
/* initializations go here */
return self;
}
public Application() {
super();
/* initializations go here */
}
Table of Contents Next Section