Say true or false,Private constructor have object or not?
Answers were Sorted based on User's Feedback
Answer / vishnu
we cannot create object for the private constructor class...
Is This Answer Correct ? | 24 Yes | 5 No |
Answer / jamie plenderleith
An object can be instantiated with a private constructor
from within a shared/static methond within the same class
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / rajkumar
A class entry point is a Constructor, So a class which has private class is inaccessible by other..in that case u cant even access a class so how can u create an instance for the class which has private constructor
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / santoshvw
we create private constructor this possible but we can't
create object(instance) of that class and we can't
communicate one class to another.
Is This Answer Correct ? | 1 Yes | 0 No |
What is the use of tuple in c#?
Why are dynamic link library used over static one?
Can I do things in il that I can't do in c#?
FOR EXAMPLE : CLASS Dotnet { } creating object: Dotnet dn=new Dotnet(); NOW THE QUESTION IS WHICH IS CALLED AS OBJECT ?EITHER dn OR new Dotnet() and CAN YOU PROVE YOUR ANSWER?????PLEASE REPLY...
What is difference between write and writeline?
What is the use of New Keyword
How do I create a multilanguage?
Does c# have its own class library?
What are the features of c#?
Different between method overriding and method overloading?
give an example for suspending, resuming, and stopping a thread ?
What is difference between const and static in c#?