374
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
179
|
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com>
|
2
|
6 // @date@ 2004-09-01
|
|
7
|
374
|
8 module dstress.run.interface_06;
|
|
9
|
2
|
10 int status;
|
|
11
|
|
12 class Parent{
|
|
13 }
|
|
14
|
|
15 interface MyInterface{
|
|
16 MyInterface test();
|
|
17 }
|
|
18
|
|
19 class Child : Parent, MyInterface{
|
|
20 MyInterface test(){
|
|
21 status++;
|
|
22 return null;
|
|
23 }
|
|
24 }
|
|
25
|
|
26 int main(){
|
|
27 Child bro = new Child();
|
|
28 assert(status==0);
|
|
29 MyInterface sis = bro.test();
|
|
30 assert(status==1);
|
|
31 return 0;
|
|
32 }
|