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;
}
namespace CuriousTabConsoleApplication { class Sample { static Sample() { Console.Write("Sample class "); } public static void CuriousTab1() { Console.Write("CuriousTab1 method "); } } class MyProgram { static void Main(string[ ] args) { Sample.CuriousTab1(); } } }
namespace CuriousTabConsoleApplication { class Sample { public static void fun1() { Console.WriteLine("CuriousTab1 method"); } public void fun2() { fun1(); Console.WriteLine("CuriousTab2 method"); } public void fun2(int i) { Console.WriteLine(i); fun2(); } } class MyProgram { static void Main(string[ ] args) { Sample s = new Sample(); Sample.fun1(); s.fun2(123); } } }
Tab1 method
123
Tabl method
Tab2 method
Tab1 method
123
Tab2 method
Tab2 method
123
Tab2 method
Tabl method
Tabl method
123
Tab2 method
123
Tabl method
Tab1 method
123
Tabl method
Tab2 method
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; } }
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.