Last Updated: February 25, 2016
·
732
· sandeepravi

Awesome CoffeeScript Inheritence

class Animal
constructor: (@name) ->

move: (meters) ->
alert @name + " moved " + meters + "m."

class Snake extends Animal
move: ->
alert "Slithering..."
super 5