class A { method() { print "A method"; } } class B < A { method() { print "B method"; } test() { this.method(); super.method(); } } class C < B {} C().test();