Employee
Constructor’s Member-Initializer List
The colon (:
) following the constructor’s header (Fig. 9.21, line 13) begins the member-initializer list. The member initializers specify the Employee
constructor parameters being passed to the constructors of the string
and Date
data members. Parameters first
, last
, ...
Get C++ How to Program, 10/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.