If a class is not required to initialize its data member or does not contain data member, there is no need to write empty constructor explicitly . On class object creation, default constructor implicitly called will be enough.10 Eki 2016
Read moreShould I always use a constructor?
If you don’t implement a constructor, the compiler will implictly create a default constructor if the class needs a constructor. So it depends on what you’re really asking. If you’re asking if you can write a class without explicitly creating a user defined constructor, yes you can do that.
Read moreWhat if we dont use constructor?
you wouldn’t be able to create objects/instances of classes , basically: you would only be able to use primitive datatypes. Even you don’t write any constructor, a default constructor exists there. So you can still create objects without passing any parameters.
Read moreWhat will happen if there are no constructor in 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).
Read more