Q1_20251108152242.webp
S

Q1_20251108152242.webp

  • Media owner Shoko91
  • Ngày thêm
Zoom
91
I EmployeeManagement
.add(e: Employee): void
update(e: Employee): void
listAll(): List<Employee>
sortByName(): List<Employee>
Q1
.main(args: String[]):void
InMemoryEmployee Management
□ store: List<Employee>
• add(e: Employee): void
update(e: Employee): void
listAll(): List<Employee>
sortByName(): List<Employee>
Comparable
a id: int
□ name: String
salary: double
Employee
a department: String
• Employee(id: int, name: String,
salary: double, department: String)
• getid(): int
getName(): String
getSalary(): double
getDepartment(): String
setName(n: String): void
setSalary(s: double): void
.setDepartment(d: String): void
compareTo(other: Employee): int
.toString(): String
Base on given class diagram, create all interface and class
1. Class Employee
Declare the fields of the class
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom