can someone let me know What is a non-delegating constructor ?
I tried to google it but could not find anything useful
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All it means is that the constructor does not delegate. (Which is the case unless you’ve made some calls between your constructors).
Constructor delegation is quite common in other and newer languages today, all it means is that the constructor is calling another constructor to prevent code duplication and maintain clean code.
Here is a simple tutorial on constructor delegating:
http://www.learncpp.com/cpp-tutorial/b-5-delegating-constructors/