Classes and Objects

Chia sẻ: Chankinh1 Chankinh1 | Ngày: | Loại File: PDF | Số trang:37

lượt xem

Classes and Objects

Mô tả tài liệu
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

Up to this point, you have been writing programs that did not use any of C++’s object-oriented capabilities. Thus, the programs in the preceding modules reflected structured programming, not object-oriented programming. To write object-oriented programs, you will need to use classes. The class is C++’s basic unit of encapsulation. Classes are used to create objects. Classes and objects are so fundamental to C++ that much of the remainder of this book is devoted to them in one way or another. ...

Chủ đề:

Nội dung Text: Classes and Objects

Đồng bộ tài khoản