Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Un constructeur peut-il avoir un type de retour (comme 'int' ou 'void') ?
Oui, il doit toujours retourner un objet de sa classe.
Non, un constructeur n'a jamais de type de retour, même pas 'void'.
Oui, il peut retourner un code d'erreur de type 'int'.
Seulement dans certains langages comme C++.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!