G
Guest
I have an abstract class. I want to define a field and a few methods which
reference the field defined for that abstract class. The field is defined in
the abstract class but is populated in the class which inherits the class.
The only way to reference the field in the abstract class is to identify the
field as a "static" field, but when I redefine this field in the class which
inherits this class, the contents is always null when I invoke this method.
If I remove the designator of "static" from the field, then I get an error
message about "object reference is required for the nonstatic field, method
or property. Removing the "abstract" designation from the class does not
help either.
How can I create a method in the base class which reference a field in the
inherited class?
Thanks in advance for your assistance!
reference the field defined for that abstract class. The field is defined in
the abstract class but is populated in the class which inherits the class.
The only way to reference the field in the abstract class is to identify the
field as a "static" field, but when I redefine this field in the class which
inherits this class, the contents is always null when I invoke this method.
If I remove the designator of "static" from the field, then I get an error
message about "object reference is required for the nonstatic field, method
or property. Removing the "abstract" designation from the class does not
help either.
How can I create a method in the base class which reference a field in the
inherited class?
Thanks in advance for your assistance!