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 / vijay rana

we can declare objects in csharp,
but we can not create any instance of this class ,
if we do so it will throw an exception;

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I create a multi language, multi file assembly?

846


What are the string functions in c#?

758


What is xml c#?

678


What is deferred execution?

675


What are the return types in c#?

726


What is the difference between double and decimal in c#?

706


What is the difference between protected and internal in c#?

680


Can you declare a field readonly?

726


What is an iqueryable in c#?

697


write a program to find the biggest palindrome in the given string

766


What does void mean unity?

716


These questions were asked me in a technical interview: •If we deploy an application on multiple server (like database server, web server) then, each request should be redirected to proper server, then how you will handle it in your code? •How security pinholes will be handled in an application? •What things should be considered while writing a web application? •How will you do load/performance testing of web application? Which framework you will use for it? •How will you implement a cache for results which require a DB access? Please let me know how to write an web application considering all these points. I am not so much aware of architechural design of web application. Your guidelines will be helpful.

2768


Explain About .Net remoting

772


Write a C# program to find the Factorial of n

759


Is a valid int value?

715