top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+3 votes
49 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...