class
ApplicationClass {
Widget a;
Widget b;
public appMethod1() {
Widget d = new Widget();
d.widgetMethod1();
// . . .
Widget e = new Widget();
// . . .
}
public appMethod2() {
// . . .
Widget f = new Widget();
f.widgetMethod1();
// . . .
Widget g = new Widget();
// . . .
}
// etc. etc . . .