misterstick
Programmer
two classes:
why doesn't ClassB.Boing see its own copy of the boing private member variable?
mr s. <
Code:
public class ClassA
{
private string boing = "boing";
public string boing { get { return boing; };
}
public class ClassB : ClassA
{
private string boing = "BOING";
}
class TestClass
{
void Main()
{
Debug.Print(new ClassA().Boing);
Debug.Print(new ClassB().Boing);
}
}
// output:
// boing
// boing
why doesn't ClassB.Boing see its own copy of the boing private member variable?
mr s. <