1. Trang chủ
  2. » Hoá học lớp 10

Lập trình hướng đối tượng: Session 6 - Class Basics

7 7 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 7
Dung lượng 84,66 KB

Nội dung

• 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

Ngày đăng: 09/03/2021, 05:27

w