diff options
Diffstat (limited to 'sem5/oop/m1/src/Main.java')
-rw-r--r-- | sem5/oop/m1/src/Main.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sem5/oop/m1/src/Main.java b/sem5/oop/m1/src/Main.java new file mode 100644 index 0000000..4ccb5a4 --- /dev/null +++ b/sem5/oop/m1/src/Main.java @@ -0,0 +1,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); + } +} |