blob: b7c1f42d6a50093b355f5ddced086ff28d778a12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
public class Main {
public static void main(String[] args) {
Student std = new Student("Julian", (short)21, "Male", (long)123213213, "COMTEK");
Uniperson hej = std;
hej.addGrade(0.32);
hej.addGrade(12);
System.out.printf("deg: %s, sem: %d, avg: %f\n", hej.getDeg(), hej.getSem(), hej.getGPA());
System.out.printf("person: %s\n", std);
}
}
|