ProAnswers.org

Demerits of constructors and destructors?

demerits of constructors and destructors?

1.Constructors and destructors don’t return values.
2.The addresses of constructors and destructors can’t be taken so we can’t 3.use references and pointers on them.
4.Constructors cannot be declared with the keyword virtual.
5.Constructors and destructors cannot be declared static, const, or volatile.