/
akupan2012
/
XMLtoJONS
Обзор
Документация
Войти
/
akupan2012
/
XMLtoJONS
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Employee.java
66 строк
1 KB
akupan2012
upload files
25 фев 2026, 21:56
Верифицирован
25 фев 2026, 21:56
4ca840b
Код
Авторство
О чём код?
public class Employee { private int id; private String firstName; private String lastName; private String country; private int age; public Employee(int id, String firstName, String lastName, String country, int age) { this.id = id; this.firstName = firstName; this.lastName = lastName; this.country = country; this.age = age; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } @Override public String toString() { return "Employee{" + "id=" + id + ", firstName='" + firstName + '\'' + ", lastName='" + lastName + '\'' + ", country='" + country + '\'' + ", age=" + age + '}'; } }