Computer Science, asked by sujan3492, 1 year ago

Is it mandatory to use constructors in a class?

Answers

Answered by crazyforstudy321
2

Answer:

Answer: C++ Empty constructor necessity depends upon class design requirements. ... 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.

hope it's help you

check this answer ok

Similar questions