Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
фабрика статик
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { class Myclass { int a,b; public static Myclass Factory (int i, int j) { Myclass t = new Myclass(); t.a=i; t.b=j; return t; } public void Show() { Console.WriteLine(a+b); } } public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!"); int i,j; for(i=0,j=10; i<10;i++,j--) {Myclass ob = Myclass.Factory(i,j); ob.Show(); } } } }
run
|
edit
|
history
|
help
0
itervativeFact
changeMe
⁸
Preprocessor in C# (#define and conditional operatives)
qwerty
ch.murali krishna
C# Extension Method
alop
sxsadxasxd
Rand things kurs 8 network