Changeset 400 in Java_Quellcode_SOOP_Vorlesung


Ignore:
Timestamp:
Jan 9, 2018, 9:37:44 AM (7 years ago)
Author:
tr
Message:

Klasse Mitarbeiter als Stub neu

Location:
oop
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • oop/DatumTest.java

    r398 r400  
    44
    55    public static void main(String[] args) {
    6         Datum d = new Datum(12, 2, 1900);
     6        Datum d = new Datum(12, 12, 2017);
    77
    88        System.out.println(d);
    99
     10/*     
    1011        for (int i = 1; i <= 24; i++) {
    1112            d.erhoehe();
    1213            System.out.println(d);
    1314        }
     15/**/
    1416    }
    1517}
  • oop/PersonStudentTest.java

    r258 r400  
    44
    55    public static void main(String[] args) {
    6         Person p = new Person("Susi", "Sorglos", 14, 5, 1989);
     6        Person p = new Person("Susi", "Sommer", 14, 5, 1989);
    77       
    88        System.out.println(p + " ist " + p.alter() + " Jahre alt.");
    99       
    1010        Student s = new Student("Willy", "Wacker", 17, 6, 1996, "MuKI", 2014);
     11
     12
    1113       
     14       
     15/**/
    1216        // Compilerfehler
    1317        // s = p;
     
    2933        System.out.println(s);
    3034        System.out.println(s2);
     35/**/
    3136    }
    3237}
Note: See TracChangeset for help on using the changeset viewer.