Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Singleton Design Pattern
//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) { Call obj= new Call(); } } class Singleton { public void show() { Console.WriteLine("I am ready to get called"); } } class Call:Singleton { private static Singleton _singleton; public Call() { if(_singleton==null) { _singleton= new Singleton(); _singleton.show(); } } } }
run
|
edit
|
history
|
help
1
sdcasdcasdcsadxcd
Fórum ➡ Get all combinations for ▶different◀ Id's ♦
sdfghyjuki54efc sacd
Tttt
algo1
Random number + IF var change2
sdfrgthyjuytrfdf
D110
gg
asxsadaxsdf