// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package jwj

trait Tr {
    void test() {
        println("Test")
    }   
}

abstract class P {
    int iv;
    void dump() {
        println("$iv")
    }
    abstract void test()
}

class C extends P implements Tr
{
    String sv;  
    void dump() {
        super.dump();
        println("$sv")
    }
    static m() {
        println("static m")
    }
}

o = new C(iv: 123, sv: "ABC")
o.dump()
o.test()
o.m()
C.m()
