public SomeClass() // Constructor { mn = new MyNested(this); // Create instance of nested class. }
public SomeClass() { mn = new MyNested(this); }
MyNested mn = null; // Reference to nested class. public SomeClass() // Constructor. { // Pass in the reference to the enclosing class. mn = new MyNested(this); // Create instance of nested class. }