Q1_20250829091141.webp
Jellal87

Q1_20250829091141.webp

  • Media owner Jellal87
  • Ngày thêm
experience: int, projects: int)
Kizspy.me getters & setters
+ toString(): String
+ getLevel(): String
Developer(salary: double, experience: Int, projects:
int) parameterized constructor, which sets values to
-
salary, experience, projects.
⚫ getters & setters: write the setters and getters all of the
fields.
⚫ getLevel(): String - returns the level of the developer.
If the number of projects is greater than or equal to 5,
level is "Senior Developer", otherwise level is "Junior
Developer"
.toString(): String return the string format that
contains all the information of the Developer: salary-
experience-projects-level. The salary must be
formatted to two decimal places.
Enter salary: 1000000
4 of 5
Paper No: 1
Zoom
+ 100%
The program output might look something like this
Enter salary: 5000000
Enter salary: 5000000
Close
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom