• Objects that include either instance variables or objects that refer to resources require the.. Resources[r]
(1)Session – Class Basics Contd…
Deep Copies
(2)Objectives
• Deep Copies
– Resources
– Copy Constructor
– Assignment Operator – Localization
– No Copies Allowed
• Custom iostream Operators
– Cascading
(3)Objectives…
• Conversion Operators
– Primitive Data Type Conversions – Derived Data Type Conversions – Design Considerations
(4)Deep Copies
(5)Resources
• Resources are stored outside the memory allocated to an object
• Instance variables that refer to resources (resource instance variables) include
pointers to
(6)Review
• Conversion Operators
– Primitive Data Type Conversions – Derived Data Type Conversions – Design Considerations
(7)Summary
• Deep Copies
– Resources
– Copy Constructor – Assignment Operator – Localization
– No Copies Allowed
• Custom iostream Operators
– Cascading
– Returning A Reference – Custom io Operators – String Class
• Conversion Operators
– Primitive Data Type Conversions – Derived Data Type Conversions – Design Considerations
– Single-Argument Constructors