Inheritence problem
Can anyone tell me the answer for the problem given below?
class A
{
}
class Bextends A
{
publicstaticvoid main(string arg[])
{
A a =new B();
}
Wat is this A a = new B(); means?
Can anyone tell me the answer for the problem given below?
class A
{
}
class Bextends A
{
publicstaticvoid main(string arg[])
{
A a =new B();
}
Wat is this A a = new B(); means?