/
Maksim_Shchelochok
/
Course_Work
Обзор
Документация
Войти
/
Maksim_Shchelochok
/
Course_Work
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/model/Teaching.java
37 строк
1 KB
Maksim
Создан класс Teaching
23 июн 2026, 15:36
23 июн 2026, 15:36
87a76a7
Код
Авторство
О чём код?
package model; public class Teaching implements Entity{ private int teachingId; private int teacherId; private String teacherName; // ФИО преподавателя — для показа private int groupId; private int hoursCount; public Teaching(int teachingId, int teacherId, String teacherName, int groupId, int hoursCount) { this.teachingId = teachingId; this.teacherId = teacherId; this.teacherName = teacherName; this.groupId = groupId; this.hoursCount = hoursCount; } public int getTeachingId() { return teachingId; } public int getTeacherId() { return teacherId; } public String getTeacherName() { return teacherName; } public int getGroupId() { return groupId; } public int getHoursCount() { return hoursCount; } @Override public int getId() { return teachingId; } @Override public String[] getColumnNames() { return new String[]{"ID", "Преподаватель", "Группа (ID)", "Часов"}; } @Override public Object[] getRowValues() { return new Object[]{teachingId, teacherName, groupId, hoursCount}; } }