I have the following code :
struct Person
{
public readonly int x;
public Person( int x )
{
this.x = x;
}
}
class Program
{
static void Main(string[] args)
{
Person p = new Person();
Console.Write(p.x);
}
}
This code work well.Why? Did overriding default constructor not be applied to structs ? Did using a parameterized constructor override the default one or not ?