top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

In what situations do you have to use initialization list rather than assignment in constructors?

+2 votes
322 views
In what situations do you have to use initialization list rather than assignment in constructors?
posted Mar 18, 2015 by Jalal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

When you want to use non-static const data members and reference data members you should use initialization list to initialize them.

answer Mar 19, 2015 by Mohammed Hussain
...