Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > WebObjects Developer's Guide


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 {
self = [super init];
/* initializations go here */
return self;
}
Likewise, in Java, the constructor must begin with an invocation of the superclass's constructor (as with all Java classes):

public Application() {
super();
/* initializations go here */
}

Table of Contents Next Section