title: Calling coffescript super methods
body: <p>I have the following code:</p>
  
  <pre><code>    class Animal
          constructor: (@name) -&gt; 
          say: () -&gt; console.log "Hello from animal called #{ @name }"
  
      class Dog extends Animal
  
          say: () -&gt;
              super.say()
              console.log "Hello from dog called #{ @name }"
  
      a = new Animal('Bobby')
      a.say()
  
      d = new Dog("Duffy")
      d.say()            
  </code></pre>
  
  <p>The result is not</p>
  
  <pre><code>Hello from animal called Bobby
  Hello from animal called Duffy
  Hello from dog called Duffy
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>Hello from animal called Bobby
  Hello from animal called Duffy
  Uncaught TypeError: Cannot call method 'say' of undefined
  </code></pre>
  
  <p>How come super is undefined? How to call a parent method in order to extend it? Thanks</p>