PRO192_-_PE02_-_SP_2025_3836.webp
Q

PRO192_-_PE02_-_SP_2025_3836.webp

☑Kizspy.me
Write a class Store (in the default package of the NetBeans) with the following information:
2 of 3
Paper No: 1
name:String
- location:String
Store
Where:

- inventoryCount: int
capacity Limit:int
+ Store(name:String, location:String,
inventoryCount: int, capacity Limit:int)
+getName():String
+getAvailableCapacity():int
+ toString():String
Store(name:String, location:String, inventoryCount:
int, capacity Limit:int) - parameterized constructor,
which sets values to name, location,
inventoryCount, and capacity Limit. If
inventoryCount is less than 50 then set it to 50
getName():String return the name in uppercase
format if its length is at least 5 characters; otherwise
return "N/A".
.getAvailableCapacity():int return the available

capacity with available capacity = capacity Limit -
inventory Count. If capacity Limit is less than
inventoryCount then set it to inventoryCount * 5
then calculate the available capacity.
Zoom
+100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRO192
Thêm bởi
Quốc Khánh1
Ngày thêm
Lượt xem
1,762
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom