by vmathew · 16y ago · 0 comments
Foo foo; // initialized to default
if (x) {
// stuff
foo = Foo.p1;
} else {
// stuff
foo = Foo.p2;
}
// No need to check if this is a valid reference, it always will be.
foo.bar();No comments yet.