I have the following code:
class Animal constructor: (@name) -> say: () -> console.log \"Hello from animal called #{ @name }\"
I found the answer myself, it should be:
class Dog extends Animal say: () -> super console.log "Hello from dog called #{ @name }"