15.7.2. Synthesized Copy Control and Inheritance
The synthesized copy-control members in a base or a derived class execute like any other synthesized constructor, assignment operator, or destructor: They memberwise initialize, assign, or destroy the members of the class itself. In addition, these synthesized members initialize, assign, or destroy the direct base part of an object by using the corresponding operation from the base class. For example,
• The synthesized Bulk_quote
default constructor runs the Disc_Quote
default constructor, which in turn runs the Quote
default constructor.
• The Quote
default constructor default initializes the ...
Get C++ Primer, Fifth Edition 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.