crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Write down main difference in between Static and Singleton Class?
Question Posted on 30 Oct 2022Home >> 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.


.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




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#






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap