fabulous Level: VB Guru

 Registered: 03-08-2002 Posts: 439
|
Re: tell me about private constructor
If you get an error telling you that you cannot access a constructor because it is private you cannot make an instance of that class.
You will find that it won't make sense to create an instance of particular classes for your own purposes. Such classes are designed that way to avoid invalid use and in most cases are meant to be accesible as properties of other classes and serve no real purpose on their own.
If you find you cannot create an instance of a class then you will also find that you can get a reference to an instance of this class via a method or property. There is no way to access this constructor at all except from within the class itself if you are the author of the class.
Happy coding.
____________________________
My boss is a Jewish Carpenter (Jesus Christ)

Brain Bench Certified VB.NET Developer
|