top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Do we have to use initialization list in spite of the assignment in constructors?

+3 votes
304 views
Do we have to use initialization list in spite of the assignment in constructors?
posted Mar 10, 2015 by Anwar

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

1 Answer

0 votes

USE INITIALIZATION LIST IN SPITE OF THE ASSIGNMENT IN CONSTRUCTOR:

We can use non-static const data members and reference data members.

We have to use initialization list for initializing them.

answer Mar 11, 2015 by Mohammed Hussain
...