mirror of
https://github.com/ASDjonok/OOP_IO-2x_2023.git
synced 2026-04-02 13:31:51 +03:00
add test code from discussion after lecture
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user