intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

Using Classes and Objects

Chia sẻ: Batman_1 Batman_1 | Ngày: | Loại File: PPT | Số trang:63

55
lượt xem
4
download
 
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

Once an object has been instantiated, we can use the dot operator to invoke its methods title.length(); Note: A method may return a value or not Example: String s = new String(“Hello"); int count = s.length(); System.out.println("Length of s is " + count);

Chủ đề:
Lưu

Nội dung Text: Using Classes and Objects

ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2