File: classinterf1.bsh

package info (click to toggle)
bsh 2.0b4-20
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 4,224 kB
  • sloc: java: 23,431; xml: 4,500; sh: 139; makefile: 24
file content (28 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

source("TestHarness.bsh");

interface TestInt1
{
	static int a = 5;
	static int b = 6;
	void go() { }
}

assert( TestInt1.a == 5 );
assert( TestInt1.b == 6 );

class TestImpl1 implements TestInt1 {
	void go() { }
}

ti1 = new TestImpl1();
assert( ti1 instanceof TestImpl1 );

/*
class TestImpl implements TestInt1 {
	void go() { 
	}
}
*/

complete();