Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Question on Private Constructor

, 25 Jan 2013 CPOL
Private constructor is used to disable construction of a class using a constructor. It makes sense for a non-static class, of course. Let's set aside static constructors: they do not allow access modifiers at all, and are always treated as private. Here is why: if no constructors defined,...



Compare Revision Minor Date Status Editor
2 - publicly available No 26-Jan-13 0:09 Available Sergey Alexandrovich Kryukov
Updates in content. 21 changes had been made.
1 No 26-Jan-13 0:08 Available Sergey Alexandrovich Kryukov


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Sergey Alexandrovich Kryukov
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150302.1 | Last Updated 26 Jan 2013
Article Copyright 2013 by Sergey Alexandrovich Kryukov
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid