using System;
public class A
{
public A()
{
Console.WriteLine(this.GetHashCode());
Console.WriteLine("A Created");
}
}
public class B : A
{
public B()
{
Console.WriteLine(this.GetHashCode());
Console.WriteLine("B Created");
}
}
public class C
{
public static void Main(String[] args)
{
B t = new B();
}
}
Output: 1805487208 A Created 1805487208 B Created
Why i got the same address for these 2 objects. Actually these 2 objects must be created side by side . But how come we are getting the same address for these two objects???