567

C# Static contsructor ?????????????

public class Class1{private static int count; public Class1(){count++;}public static Class1(){count=1;}public int GetCount(){return count;}}Cum de rezlizat ceea ce am scris ???Adica sa am 2 constructori unu static (la crearea applicatiei/modulului) shi al doilea la initzializarea clasei ? public class Class1{private static int count;static Class1(){count=1;}public Class1(){count++;}public int GetCount(){return count;}} Gasityi 10 diferente, :))))))))))))))))))
0