PR2/PR2_UIB/Exercises/Testat1/Aufgabe2/Student.java

16 lines
345 B
Java
Raw Normal View History

2024-04-20 11:25:11 +02:00
package Testat1.Aufgabe2;
import java.time.LocalDate;
public class Student extends Person{
protected String fach;
public Student(LocalDate dateOfEm, String name, int age, double size, String fach) {
super(dateOfEm, name, age, size);
this.fach = fach;
}
public String toString() {
return super.toString() + ", fach = " + fach;
}
}