Consider Happen Erro

Chia sẻ: Asdsadasd 1231qwdq | Ngày: | Loại File: PDF | Số trang:4

0
43
lượt xem
4
download

Consider Happen Erro

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

Unboxing Because a variable of type object can refer to a boxed copy of a value, it's only reasonable to allow you to get at that boxed value through the variable. You might expect to be able to access the boxed int value that a variable o refers to by using a simple assignment statement such as: int i = o; However, if you try this syntax, you'll get a compile time error. If you think about it, it's pretty sensible that you can't use the int i = o; syntax. After all, o could be referencing absolutely anything and...

Chủ đề:
Lưu

Nội dung Text: Consider Happen Erro

Đồng bộ tài khoản