with default keyword , and dont define constructor!!!!?
Depends on whether other constructors are defined or not. If your class doesn't have any other constructor and you declare the one without arguments (default constructor) with = default (it's called "defaulted"), then it will make no difference because your default constructor will be generated anyway in case of absense of other constructors (with exception when it's not possible at all). But if your class already have some other constructors then the default constructor will not be generated implicitly, if you still want it to be generated for you you can use = default.
Обсуждают сегодня