Changeset 400 in Java_Quellcode_SOOP_Vorlesung
- Timestamp:
- Jan 9, 2018, 9:37:44 AM (7 years ago)
- Location:
- oop
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
oop/DatumTest.java
r398 r400 4 4 5 5 public static void main(String[] args) { 6 Datum d = new Datum(12, 2, 1900);6 Datum d = new Datum(12, 12, 2017); 7 7 8 8 System.out.println(d); 9 9 10 /* 10 11 for (int i = 1; i <= 24; i++) { 11 12 d.erhoehe(); 12 13 System.out.println(d); 13 14 } 15 /**/ 14 16 } 15 17 } -
oop/PersonStudentTest.java
r258 r400 4 4 5 5 public static void main(String[] args) { 6 Person p = new Person("Susi", "So rglos", 14, 5, 1989);6 Person p = new Person("Susi", "Sommer", 14, 5, 1989); 7 7 8 8 System.out.println(p + " ist " + p.alter() + " Jahre alt."); 9 9 10 10 Student s = new Student("Willy", "Wacker", 17, 6, 1996, "MuKI", 2014); 11 12 11 13 14 15 /**/ 12 16 // Compilerfehler 13 17 // s = p; … … 29 33 System.out.println(s); 30 34 System.out.println(s2); 35 /**/ 31 36 } 32 37 }
Note: See TracChangeset
for help on using the changeset viewer.