Java
- 1 ответ
- 0 вопросов
1
Вклад в тег
public class Employee {
private String fullName;
private Post post;
private int age;
private String phoneNomber;
private String email;
Employee(String fullName, Post post, int age, String phoneNomber, String email) {
this.fullName = fullName;
this.post = post;
this.age = age;
this.phoneNomber = phoneNomber;
this.email = email;
}
Employee employee1 = new Employee("Степанов Илья Олегович", new Post("title","department",10),20,"123123","aa");