OOP_IO-2x_2023-mirror/Students.java

31 lines
825 B
Java
Raw Normal View History

2023-05-12 16:19:53 +03:00
public class Students {
private String name;
private int age;
private String nameOfFaculty;
private int numberOfGroup;
private int lvlOfKnowledge;
public Students(String name, int age, String nameOfFaculty, int numberOfGroup, int lvlOfKnowledge) {
this.name = name;
this.age = age;
this.nameOfFaculty = nameOfFaculty;
this.numberOfGroup = numberOfGroup;
this.lvlOfKnowledge = lvlOfKnowledge;
}
public String getName() {
return name;
}
public int getAge() {
return age;
}
public String getNameOfFaculty() {
return nameOfFaculty;
}
public int getNumberOfGroup() {
return numberOfGroup;
}
public int getLvlOfKnowledge() {
return lvlOfKnowledge;
}
}