trygve: basectortest.k

class Base {
   public Base() { System.out.println("Base::Base"); }
}

class Derived extends Base {
   public Derived(int k) {
      System.out.print("Derived::Derived(");
      System.out.print(k);
      System.out.println(")");
   }
   public void hello() {
      System.out.println("hello world")
   }
}

(new Derived(789)).hello()
/* GOLD:
___________________________________________________________
Base::Base
Derived::Derived(789)
hello world
*/