What is a private constructor? where will you use it?
Answer Posted / sri
we can declare the constructor private ,it is called
private constructor.
| Is This Answer Correct ? | 3 Yes | 15 No |
Post New Answer View All Answers
In a C# class we have a SortedList member m_addinProjects
we want to provide an iterator to allow the consumer of
this class access to the items in the collection. Please
provide an iterator method for the AnalyzeAddinsDLL class
below and an example of how it would be used.
namespace AnalyzeAddinsDLL
{
public class AllAddInProjects
{
private SortedList
What is poco c#?
Why do we use threads in c#?
How does c# generics and c++ templates compare?
What is the implicit name of the parameter that gets passed into the class set method?
Why hashtable is thread safe in c#?
What is COM Interoperability?
What is 8 bit signed integer?
What is console based application?
Where value types are stored in c#?
What does protected internal access modifier mean?
What are the types of attributes in c#?
Is vs as c#?
What is difference between method overriding and method overloading?
What is new method in c#?