Can we use method for calling constructor?

Answer

No, we can only use ‘this’ or ‘super’ to call constructor.The constructor is called just a single time, so you can securely do what you need, anyway the impediment of calling strategies from inside the constructor, as opposed to legitimately, is that you don't get immediate input if the technique falls flat. This gets increasingly troublesome the more techniques you call. One arrangement is to give techniques that you can call to question the 'wellbeing' of the article once it's been developed.

All c++ Questions

Ask your interview questions on c

Write Your comment or Questions if you want the answers on c from c Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---