Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 12 lines (10 sloc) 0.214 kb
2a035ff Michael Homer Add new class constructor tests
authored
1 class aCat.named(name') {
2 def name = name'
3 method describe {
4 print "A cat called {name}"
5 }
6 }
7
8 def myCat = aCat.named "Timothy"
9 def yourCat = aCat.named "Gregory"
10 myCat.describe
11 yourCat.describe
Something went wrong with that request. Please try again.