C
ChrisB
Hello:
An object that is a field in another object has a constructor that requires
a reference to the containing object:
// object fields
ChildObject childObject = new ChildObject(this);
When attempting to compile this code, a message is returned that states that
the "this" keyword is not available in this context.
Any way around this?
Thanks,
Chris
An object that is a field in another object has a constructor that requires
a reference to the containing object:
// object fields
ChildObject childObject = new ChildObject(this);
When attempting to compile this code, a message is returned that states that
the "this" keyword is not available in this context.
Any way around this?
Thanks,
Chris