A
Altman
I have a class that I want many others inherited off of. I have created a
variable in the parent class that I want the inherited classes to set. But
I do not want to set the variable in the constructor. Ex.
Class A
protected myVar as string
END Class
Class B
inherits A
'set the myVar Variable
myVar = "Class B"
End Class
I need Class A to have access to the myVar so I can't use shadows and
redeclare it. This seems like it should be trivial but I can't figure it
out. The reason I don't want to use a constructo in class B is because I
built the overloaded contructors in class A and do not want to override each
one of them everytime I inherit class A.
variable in the parent class that I want the inherited classes to set. But
I do not want to set the variable in the constructor. Ex.
Class A
protected myVar as string
END Class
Class B
inherits A
'set the myVar Variable
myVar = "Class B"
End Class
I need Class A to have access to the myVar so I can't use shadows and
redeclare it. This seems like it should be trivial but I can't figure it
out. The reason I don't want to use a constructo in class B is because I
built the overloaded contructors in class A and do not want to override each
one of them everytime I inherit class A.