Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
The System.Object Class
Đang chuẩn bị liên kết để tải về tài liệu:
The System.Object Class
Thiên Trang
53
1
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Các System.Object Class Một trong những loại tài liệu tham khảo quan trọng nhất trong NET Framework. Là lớp Object trong namespace System. Để đánh giá đầy đủ ý nghĩa của lớp System.Object yêu cầu bạn hiểu thừa kế | The System.Object Class One of the most important reference types in the .NET Framework is the Object class in the System namespace. To fully appreciate the significance of the System.Object class requires that you understand inheritance which is described in Chapter 12 Working with Inheritance. For the time being simply accept that all classes are specialized types of System.Object and that you can use System.Object to create a variable that can refer to any reference type. System.Object is such an important class that C provides the object keyword as an alias for System.Object. In your code you can use object or you can write System.Object they mean exactly the same thing. TIP Use the object keyword in preference to System.Object. It s more direct and it s also consistent with using other keywords that have longer synonyms as you ll discover in Chapter 9 Creating Value Types with Enumerations and Structs. If your program contains a using System directive you could also write Object with a capital O without the System. prefix but it s best to consistently use the simpler keyword object. In the following example the variables c and o both refer to the same Circle object. The fact that the type of c is Circle and the type of o is object the alias for System.Object in effect provides two different views of the same object Circle c c new Circle 42 object o o c
TÀI LIỆU LIÊN QUAN
OBJECT-ORIENTED PROGRAMMING AND THE OBJECTIVE-C LANGUAGE
Object-Oriented Design II
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.