repo.or.cz
/
chuck-blob.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
*** empty log message ***
[chuck-blob.git]
/
v2
/
test
/
13.ck
blob
2c7432df06d1c51ae19029570b1ce25212a945a6
1
// 13.ck : class inheritance
2
3
// define X
4
class X
5
{
6
public void foo() { }
7
int y;
8
dur z;
9
}
10
11
// define Y
12
class Y extends X
13
{
14
public void foo() { }
15
}
16
17
// instantiate a X
18
X x;
19
20
// instantiate a Y
21
Y y;
22
23
<<<"success">>>;