Whats the difference between using the member initializer list notation, such as used in name.h, and just initializing the members in constructor body?
All of the data members are constructed before the constructor body is executed, so initializing the members in the constructor body uses assignment, not initialization (i.e., the object already exists). If no member initializers are given then the no-argument constructor is used. The member initializer notation allows you to control which constructor is used, and to pass data to it.
Related Questions
- If a consultant is used in preparing an EIS, must the list of preparers identify members of the consulting firm as well as the agency NEPA staff who were primarily responsible?
- If the security principals used for RMS are global address list (GAL) members, is there any dependency on the version of Exchange?
- I HAVENT USED CITY DIRECTORIES BEFORE. DO CITY DIRECTORIES LIST ALL THE FAMILY MEMBERS AND AGES LIKE THE CENSUS?