I have a class called FieldDesc.
public class FieldDesc {
public FieldDesc() {
}
}
I also have another class that inherits from FieldDesc called StandardHoursByCommunitySvcType.
public class StandardHoursByCommunitySvcType: FieldDesc {
public StandardHoursByCommunitySvcType() {
}
}
In my control I have –
FieldDesc aTable;
aTable = new FieldDesc();
String TableName = "StandardHoursByCommunitySvcType";
What do I have to do to get aTable to know that it is an object of type StandardHoursByCommunitySvcType ?
If you have the two classes
You can do this
The derived class is assignment compatible to the base class; however, accessed through a variable typed as the base class you will only see the the members of the base class.