Computer Science, asked by ganeshganni879, 1 year ago

Can we have more than one constructor in a class if yes explain the need for such a situationin c++

Answers

Answered by VedantJain
2

Yes, we can.

Basically if you have more then one constructor than the second's data will overwrite the first's.

It is useful if you are verifying data.

Similar questions