class Base { foo() { print "Base.foo()"; } } class Derived < Base { foo() { print "Derived.foo()"; super.foo(); } } Derived().foo(); // expect: Derived.foo() // expect: Base.foo()