Can a class have no constructor C++?

If your class has no constructors, C++ will automatically generate a public default constructor for you . This is sometimes called an implicit constructor (or implicitly generated constructor). The Date class has no constructors.

Sizin İçin Seçtik  What is move constructor in C ++ 11?

Leave a Reply

Your email address will not be published. Required fields are marked *