class Sample { int i; Single j; double k; public Sample (int ii, Single jj, double kk) { i = ii; j = jj; k = kk; } }
Sample s1 = new Sample(); Sample s2 = new Sample(9, 5.6f);
public Sample()
{
i = 0;
j = 0.0f;
}
public Sample (int ii, Single jj)
{
i = ii;
j = jj;
}
public Sample (Optional int ii = 0, Optional Single jj = 0.0f)
{
i = ii;
j = jj;
}
public Sample (int ii, Single jj)
{
i = ii;
j = jj;
}
Sample s;
s = new Sample();
public Sample()
{
i = 0;
j = 0.0f;
}
public Sample (int ii, Single jj)
{
i = ii;
j = jj;
}
class Sample { static int i; int j; public void proc1() { i = 11; j = 22; } public static void proc2() { i = 1; j = 2; } static Sample() { i = 0; j = 0; } }
namespace CuriousTabConsoleApplication { class Sample { public int func() { return 1; } public Single func() { return 2.4f ; } } class Program { static void Main(string[ ] args) { Sample s1 = new Sample(); int i; i = s1.func(); Single j; j = s1.func(); } } }
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.