Click here to Skip to main content
12,951,619 members (56,613 online)
Click here to Skip to main content

Tagged as


1 bookmarked
Posted 25 Jan 2013

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 25-Jan-13 18:09 Available Sergey Alexandrovich Kryukov
Updates in content. 21 changes had been made.
1 No 25-Jan-13 18: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

You may also be interested in...

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