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 can we get the state of the requested process? XMLHttpRequest get the current state of the request operation by using the readyState property. This property checks the cond

Design an interface and add code to command buttons using case statement, to find coursework to be calculated using formula 0.6*1/6*total Mark

Question: (a) List the two main advantages of developing a Multitiered Web Applications. (b) Explain how Validation controls are used to validate forms. (c) Using com

Question: (a) List three advantages of binding data to controls. (b) The Repeater control uses templates to control formatting. Define the five types of templates supporte

How to use ActiveX Control in .Net ? ActiveX control is a special type of COM component  that supports a User Interface. Using ActiveX Control in your .Net Project is even

What is the difference between the Clone() and Copy() methods of the DataSet class? The Clone() method copies only the structure of a DataSet. The copied structure having all t

I need C# Programmer Project Description: To help in the production of a C# module to provide a web service. We are based in Littlehampton, West Sussex. Skills required ar

What are the naming conventions required for XML elements tags? The following are the naming conventions that need to be followed for XML elements tags: Element names should

Question: (a) How can you simple-bind controls at design mode? (b) How can a blank record be created in a dataset bound to the controls in a Windows form? (c) Datagrid

What is the difference between "DataSet" and "DataReader"? The major differences between "DataSet" and "DataReader" are as follows:- 1)The "DataSet" is a disconnected archit