☰
Debian Codegraph
@
1.5.5.8-1
/
/
src
/
test
/
01-Basic
/
192-class-ctors.ck
☽
☼
src/test/01-Basic/192-class-ctors.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// test pre-constructors running with inheritance
2
3
// base
4
class Foo
5
{
6
<<< "I am a Foo" >>>;
7
}
8
9
// child
10
class Bar extends Foo
11
{
12
<<< "I am a Bar" >>>;
13
}
14
15
// instantiate Bar should run both Foo's and Bar's pre-constructor
16
Bar bar;