aboutsummaryrefslogtreecommitdiff
path: root/sem5/oop/m1/src/Main.java
blob: 4ccb5a4ba3afdc5fe7f08973481600fe9b55d6f5 (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.addGPA(0.32);
		hej.addGPA(12);
		
		System.out.printf("deg: %s, sem: %d, avg: %f\n", hej.getDeg(), hej.getSem(), hej.avgGPA());
		
		System.out.printf("person: %s\n", std);
	}
}