daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest May 23rd, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Animal
  2.   move: (meters) ->
  3.     alert @name + " moved " + meters + "m."
  4.  
  5. class Snake extends Animal
  6.   constructor: (name) ->
  7.     @name: name
  8.  
  9. animal: new Snake("Slithery")
  10. animal.move(30)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top