title: Coffeescript - How to call method of parent class
body: <pre><code>class Foo 
    foo: () -&gt;
      console.log("foo method Called")
  
  class Bar extends Foo
    constructor: () -&gt;
      console.log("Bar created")
  
    bar: () -&gt;
      console.log("bar method called")
      foo
  
  b = new Bar
  b.bar()
  </code></pre>
  
  <p>Results:<br>
  Bar created<br>
  bar method called<br>
  ReferenceError: foo is not defined<br></p>
  
  <p>How do I call the foo method? </p>