G
Ghanta Sunil Krishna
Hi,
I have a class say...
class A
{
private int i,j,k;
public void m1(){}
public void m2(){}
}
class B:A
{
private int a,b,c;
public void m3(){}
public void m4(){}
}
class C
{
public static void Main()
{
A a1 = new A();
}
}
when i say A a1 = new A() an object of type "A" will
created on the heap the handle to which is assigned to
variable "a1". can anyone give memory layout of this
object.
I have a class say...
class A
{
private int i,j,k;
public void m1(){}
public void m2(){}
}
class B:A
{
private int a,b,c;
public void m3(){}
public void m4(){}
}
class C
{
public static void Main()
{
A a1 = new A();
}
}
when i say A a1 = new A() an object of type "A" will
created on the heap the handle to which is assigned to
variable "a1". can anyone give memory layout of this
object.