0 0
Read Time:9 Second
In singleton pattern, a class can only have one instance and provides access point to it globally.

Eg:
[csharp]
Public sealed class Singleton
{
Private static readonly Singleton _instance = new Singleton();
}
[/csharp]
Previous post What are Modifiers in C#? Why can’t you specify the accessibility modifier for methods inside the interface?
Next post What is the difference between the Response.Write() and Response.Output.Write() methods?
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Close
0
Would love your thoughts, please comment.x
()
x
× How can I help you?