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  How do you get a BOND token?

Leave a Reply

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