Browse Source

Added printStudentInfo to Student class

remotes/origin/fdai7780
fdai7887 12 months ago
parent
commit
117f1edbd4
  1. 7
      src/main/java/org/example/Student.java

7
src/main/java/org/example/Student.java

@ -40,4 +40,11 @@ public class Student {
public void setRole(String role) {
this.role = role;
}
public void printStudentInfo()
{
System.out.println("Name: " + getStudentName());
System.out.println("ID: " + getStudentID());
System.out.println("role: " + getRole());
}
}
Loading…
Cancel
Save