In what instances you will declare constructor to be private, DOT NET Programming

When we create a private constructor, we can not create object of the class directly from the client. So you will use the private constructors whenever you do not want instances of the class to be created by any external client. For example the UTILITY functions in project will have no instance and be used without creating instance, as creating instances of the class would be a waste of memory.

Posted Date: 9/22/2012 3:24:49 AM | Location : United States







Related Discussions:- In what instances you will declare constructor to be private, Assignment Help, Ask Question on In what instances you will declare constructor to be private, Get Answer, Expert's Help, In what instances you will declare constructor to be private Discussions

Write discussion on In what instances you will declare constructor to be private
Your posts are moderated
Related Questions
How do we connect to SQL SERVER, which namespace do we use ? The code is shown below, after that i will  give the explanation for it. For this sample we will also require a SQL

What is XML? Extensible markup language (XML) is all about describing the data. Below is a XML which describes an invoice data. Shoes   12 10


Project Description: I require a custom texture painting plug-in for the latest version of Unity 3D. The project can have features that are common in Photoshop and Mari for pain

Why do we use the XMLHttpRequest object in AJAX? The XMLHttpRequest object is used by JavaScript to transfer XML and other text data among client and server. The XMLHttpRequest

Finding the frequencies - C# Program: Please let me know how to find Frequencies in C#.

What is "Common Type System" (CTS)?  CTS define all of the basic types that can be used  in the .NET Framework and the operations performed on those type. All this time we have

The purpose of this project is to ?nalize your TODO application.  For this project we are aiming to achieve the following: Objectives: Integrate a fully functional mobile

Bug Correction and Prediction Project Description: The project is about the prediction of bugs and resolves the bug in the sample program using costriage algorithm. You have

Write a program interactively two integers using the method console.readline and int.parse and display their sum