Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
static, private, public constructor in C#
//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 { public class Program { public static void Main(string[] args) { demo d = new demo(10); } } public class demo { static demo() { Console.WriteLine("This is no parameter static constructor"); } private demo(string a) { Console.WriteLine("This is no parameter private constructor"); } public demo(int a):this("aaa") { Console.WriteLine("This is one parameter public constructor"); } } }
run
|
edit
|
history
|
help
0
YRHBD XDXS
gd
HashItUp
Battle Algorythm
Strings in C# with some properties examples
Sort example
Exemple Regex
character occurrence in the given string
NEVERMIND
Does string contain only digits