Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 
DogFood


Write down main difference in between Static and Singleton Class?
Question Posted on 30 Oct 2022

Home >> DotNet >> C# >> Write down main difference in between Static and Singleton Class?




Write down main difference in between Static and Singleton Class?
Below are the five main difference in between static Class and Singleton Class:-
0
0

NoBase of DifferenceStatic ClassSingleton Class
1SerializeWe cannot do serializing Static Class.We can Serialize Singleton Class.
2InheritWe cannot inherit the static class in other classes just like no Polymorphism.We can inherit and extend singleton class by having a protected constructor.
3InterfaceWe cannot implement an interface in Static Class.We can implement an interface in Singleton Class.
4InstanceIn Static Class we cannot create and assign an instance to another variable.We can create once instance and assign it to multiple variables.
5ArgumentWe cannot pass an an argument to a method. We can passed this as an argument.


 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Simplest definition of partial classes and its rules?
Definition of Tuple class with some examples?
Define Race Condition in cSharp?
C#.Net Reserve Words
can we inherit private class level variables in c#






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |