What is the use of private constructor in c plus plus?

1 answer

Answer

1184395

2026-06-01 14:05

+ Follow

Private construction prevents objects from the class from being instantiated other than via a static member function of the class, a friend function or a friend class.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.