PRO192_-_FA_2024_-_PE_2884.webp
T

PRO192_-_FA_2024_-_PE_2884.webp

+getWeight():int
+setWeight(weight:int):void
original string.
getWeight():int - return weight.
setWeight(weight:int):void weight + 3.update weight=new
Do not format the result.
The program output might look something like:
Enter origin: crow
Enter origin: crow
Enter weight: 2
Enter weight: 1
1. Test getOrigin()
1. Test getOrigin()
2. Test setWeight()
2. Test setWeight()
Enter TC (1 or 2): 1
Enter TC (1 or 2): 2
OUTPUT:
2crow
Enter new weight: 2
OUTPUT:5
Question 2:
+ 100%
Zoom
Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Tucker2004
Ngày thêm
Lượt xem
3,858
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_FA_2024_-_PE_2884.webp
File size
131 KB
Dimensions
1920px x 803px

Share this media

Back
Bên trên Bottom