Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (30 sloc) 467 Bytes
class A.new(v') {
var v := v'
method foo {
print "A's foo: {self.v}"
}
method baz {
print "A's baz"
}
}
class B.new(x) {
inherits A.new(x)
method bar {
print "B's bar"
}
method baz {
print "B's baz invokes..."
super.baz
}
}
class C.new(y) {
inherits B.new(y)
method baz {
print "C's baz invokes..."
super.baz
}
}
var b := C.new("ARGUMENT")
b.foo
b.bar
b.baz
Jump to Line
Something went wrong with that request. Please try again.