☰
Debian Codegraph
@
1.5.5.8-1
/
/
src
/
test
/
01-Basic
/
12.ck
☽
☼
src/test/01-Basic/12.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// 12.ck : class definition and instantiation
2
3
// define local class X (use 'public' to define global class)
4
class X
5
{
6
// function foo
7
public void foo() { }
8
9
// members
10
int y;
11
dur z;
12
}
13
14
// instantiate a X
15
X x;
16
17
// test
18
<<<"success">>>;