1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package pkg; class Example { public void foo() { } public int goo() { return 37; } double d = 37; Example(int i) { d = d + i; } }