A
anoj
Why the constructor with String parameter gets called whenever value
of null is passed (see below)??
===============
using System;
using System.Collections.Generic;
namespace simple
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
X objx=new X(null);
}
}
class X
{
public X(Object a)
{
Console.Write("Object.A");
}
public X(String a)
{
Console.Write("String.A");
}
}
}
of null is passed (see below)??
===============
using System;
using System.Collections.Generic;
namespace simple
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
X objx=new X(null);
}
}
class X
{
public X(Object a)
{
Console.Write("Object.A");
}
public X(String a)
{
Console.Write("String.A");
}
}
}