G
Guest
I Have this:
class A
{
A()
{
}
}
class B : A
{
B()
{
}
}
Class C
{
C()
{
A foo = new B();
}
}
My question is, what's the type of foo (A or B)
class A
{
A()
{
}
}
class B : A
{
B()
{
}
}
Class C
{
C()
{
A foo = new B();
}
}
My question is, what's the type of foo (A or B)