// test of class keyword class A { function A() { println("This is the constructor A"); } var c = 12; function B() { println("This is B and c is " + this.c); } static var x = 34; static function staticfunc() { println("staticfunc called static x is" + A.x); } } class C extends A { function C() { // will this work! // println("in C, i is " + i.toSource()); println("This is the constructor C"); A.prototype.constructor.call(this); } function D() { println("This is D and c is " + this.c); } } //println(A.toSource()); //println(A.prototype.toSource()); var a = new A(); //println(a.toSource()); a.B(); var c = new C(); //println(c.toSource()); c.B(); c.D(); A.staticfunc();