1) We can't implment any interfaces for the static class. for singleton we can implement.
2) We can pass singleton object to the methods as a parameter. but in static we can't.
3) We can also able to use inheritence in singleton. but in static we can't.
4)A singleton is a class you can create exactly one instance from.
From a static class you can create no instance at all (but you can call it's static methods).
If you have any queries or suggestions, please fell free to ask in comments section.
2) We can pass singleton object to the methods as a parameter. but in static we can't.
3) We can also able to use inheritence in singleton. but in static we can't.
4)A singleton is a class you can create exactly one instance from.
From a static class you can create no instance at all (but you can call it's static methods).
If you have any queries or suggestions, please fell free to ask in comments section.
Post a Comment
Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.