Code
using System;
public class Test
{
public int int_x;
public string str_x;
public byte byte_x;
public Test()
{
this.int_x=10;
this.str_x="I love you more than I can say !";
this.byte_x=5;
}
public Test(string str):this()
{
this.str_x=str;
}
static void Main()
{
Test te=new Test("You are my sunshine..");
Console.WriteLine("te.int_x={0}\n",te.int_x);
Console.WriteLine("te.str_x={0}\n",te.str_x);
Console.WriteLine("te.byte_x={0}\n",te.byte_x);
}
using System;
public class Test
{
public int int_x;
public string str_x;
public byte byte_x;
public Test()
{
this.int_x=10;
this.str_x="I love you more than I can say !";
this.byte_x=5;
}
public Test(string str):this()
{
this.str_x=str;
}
static void Main()
{
Test te=new Test("You are my sunshine..");
Console.WriteLine("te.int_x={0}\n",te.int_x);
Console.WriteLine("te.str_x={0}\n",te.str_x);
Console.WriteLine("te.byte_x={0}\n",te.byte_x);
}