examples/code.cs in coffee-script-0.1.1 vs examples/code.cs in coffee-script-0.1.2
- old
+ new
@@ -143,16 +143,16 @@
Animal: => .
Animal.prototype.move: meters =>
alert(this.name + " moved " + meters + "m.").
Snake: name => this.name: name.
-Snake.prototype: Animal
+Snake extends new Animal()
Snake.prototype.move: =>
alert('Slithering...')
super(5).
Horse: name => this.name: name.
-Horse.prototype: Animal
+Horse extends new Animal()
Horse.prototype.move: =>
alert('Galloping...')
super(45).
sam: new Snake("Sammy the Snake")
\ No newline at end of file