Can we have private constructor in our class file. When we
are trying to create instance for the class will it create
or throw error regarding that?

Answer Posted / balamurugan

we can create private constructor.it wont throw any
execption..but we cant create object for that class

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is fcl in c#?

675


Explain the difference between the system.array.copyto() and system.array.clone()?

709


What is the difference between convert and parse in c#?

670


Can struct have constructor c#?

688


How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!

1887


Why delegates are type safe?

710


What is _layout cshtml?

663


Is var a data type?

742


What is event sourcing in c#?

720


How assembly versioning in .NET prevent DLL Hell problem?

726


What is the interface in c#?

725


How many types of polymorphism are there?

719


What is a linked list c#?

696


HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

744


Can constructor be protected in c#?

699