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
Contraseña final
Seizoen bepalen in C#
C# Dictionary with Enum Keys And Values
Captcha
CommandForce3
Selection sort
time
timer
Sort A List : Print the sorted list of ages of the students
Boyer Moore String Search