Hi
i created class a and b is it's child (a:b)
public class a
{
string text = "class a";
public void alert()
{
MessageBox.Show(text);
}
}
public class b : a
{
string text = "class b";
}
b myb = new b();
myb.alert();
but when i call alert() it shows "class a"
how i can access child class varibles