add test code from discussion after lecture

This commit is contained in:
Oleksii Aleshchenko
2023-02-16 16:30:11 +02:00
parent 81947f9b29
commit 9112df275b
4 changed files with 50 additions and 0 deletions

View File

@@ -3,8 +3,16 @@ package encapsulationInheritancePolymorphism;
public class Student {
private String name;
private String surname;
private String group;
private String faculty;
public String getName() {
return name;
}
public void setFaculty(String faculty, String group) {
this.faculty = faculty;
this.group = group;
}
}