Can C++ class have no constructor?

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.5 Eyl 2007

Sizin İçin Seçtik  Are class members initialized C++?

Leave a Reply

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