aboutsummaryrefslogtreecommitdiff
path: root/sem5/oop/m1/src/Main.java
blob: 3906cc6fe4ce5fb39b4665e0e39a1d541c8e1e82 (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(7);
		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);
	}
}