diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-10-28 14:50:26 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-10-28 14:50:26 +0100 |
commit | 4c05d65aadfe27959b15a88e99dbccd199b534c7 (patch) | |
tree | 39a85aaf4811f8bd62d881b7d3420aff61056524 /ws2015/einfuehrung_in_die_programmierung/blaetter/02/H2-2.md | |
parent | e3d0f58ff28e87b6bf7ca742ef5daecff2012204 (diff) | |
download | uni-4c05d65aadfe27959b15a88e99dbccd199b534c7.tar uni-4c05d65aadfe27959b15a88e99dbccd199b534c7.tar.gz uni-4c05d65aadfe27959b15a88e99dbccd199b534c7.tar.bz2 uni-4c05d65aadfe27959b15a88e99dbccd199b534c7.tar.xz uni-4c05d65aadfe27959b15a88e99dbccd199b534c7.zip |
EiP Blatt 2
Diffstat (limited to 'ws2015/einfuehrung_in_die_programmierung/blaetter/02/H2-2.md')
-rw-r--r-- | ws2015/einfuehrung_in_die_programmierung/blaetter/02/H2-2.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ws2015/einfuehrung_in_die_programmierung/blaetter/02/H2-2.md b/ws2015/einfuehrung_in_die_programmierung/blaetter/02/H2-2.md new file mode 100644 index 0000000..430d28e --- /dev/null +++ b/ws2015/einfuehrung_in_die_programmierung/blaetter/02/H2-2.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # Variablen | ||
2 | |||
3 | 2 -- `int x` | ||
4 | ~ Instanzvariable -- Lebenspanne identisch mit der des Objekts, Sichtbar (und nicht überschattet) in 9, und 13 | ||
5 | |||
6 | 4 -- `int x` | ||
7 | ~ Parameter -- Lebenspanne bis 6, Sichtbar in 5 | ||
8 | |||
9 | 12 -- `int y` | ||
10 | ~ Parameter -- Lebenspanne bis 17, Sichtbar in 13--16 | ||
11 | |||
12 | 14 -- `int x` | ||
13 | ~ Lokale Variable -- Lebenspanne bis 17, Sichtbar in 15--16 | ||