Say true or false,Private constructor have object or not?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between ienumerable and icollection?

469


Which is faster abstract class or interface in c#?

544


How can you write a class to restrict that only one object of this class can be created (Singleton class)?

518


What is the use of main method in c#?

487


Why is it important to override gethashcode when equals method is overridden?

555






What types of object can I throw as exceptions?

536


What is a clr host?

556


How do we achieve encapsulation in c#?

485


Why do we need private constructor in c#?

468


What is visual c# net?

490


Can we have 2 main methods in c#?

482


What is arraylist class in c#?

532


What is difference between ienumerable and list in c#?

451


What is windows application in c#?

472


What is difference between override and new in c#?

511