source:
Java_Quellcode_SOOP_Vorlesung/oop/PersonTest.java
Last change on this file was 245, checked in by tr, 8 years ago | |
---|---|
File size: 286 bytes |
Line | |
---|---|
1 | package eu.hsrw.tr.prog.vl.oop; |
2 | |
3 | public class PersonTest { |
4 | |
5 | public static void main(String[] args) { |
6 | Person p = new Person("Susi", "Sommer", 16, 7, 1997); |
7 | |
8 | Person t = p; |
9 | |
10 | t.gebdat.jahr--; |
11 | |
12 | System.out.println(p + " ist " + p.alter() + " Jahre alt."); |
13 | } |
14 | |
15 | } |
Note: See TracBrowser
for help on using the repository browser.