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
About us in a nutshell: We are a young start-up that trade a refreshing product in the field of enterprise software and develops with the latest technologies. We love to partner wi

What is Service Oriented architecture? The "Services" are the components which expose well defined interfaces and these interfaces communicate through XML messages. By Using th

What is the main difference between sub-procedure and function? The sub-procedure is a block of multiple visual basic statements within Sub and End Sub statements. It is used t

What's the use of resource manager class? The ResourceManager class helps us to read the resource files and get the values by using key. At First you require to create the obje

What are the differences between ASP and ASP .Net ?  ASP: Code is Interpreted ASP.NET: Code is Compiled   ASP: Business Logic and Presentation Logic are in a one

I want to develop a Windows 8.1 Application Project Description: Media Player App Development for Windows 8.1 platform with brilliant UI, flexible controls and easy to use.

Project Description: I am having a table available in excel format and features the subsequent: - It has about 170000 rows - Some text is longer than 255 in length. - S

What is Unicode? In order to understand the concept of Unicode we require  to move a little back and understand the ANSI code. The ASCII (ask key) stands for American Standard

Which property on a Combo Box do you set with a column name, prior to setting the Data Source, to display data in the combo box? ComboBox.DataValueField = "ColumnName" When

I need C# API for bitfinex Project Description: Hi, I need a developer to build a library in C# that connects to the bitfinex API. The library must implement all the authenti