Skip to content

Commit

Permalink
Update Classes.has
Browse files Browse the repository at this point in the history
  • Loading branch information
zdimension committed Sep 22, 2015
1 parent 9f8c91a commit ab83b12
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/Classes.has
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ class Dog {

# You can extend classes with class <newClassName> : <otherClassName>
class BigDog : Dog {
func new() {
}

func growl(this) {
println("GRRRR");
}
Expand All @@ -30,7 +27,8 @@ func main() {
fiddo = new Dog("Fiddo");
fiddo.showName();
fiddo.bark();
bigDog = new BigDog();
bigDog = new BigDog("Charlie");
bigDog.showName();
bigDog.bark();
bigDog.growl();
}

0 comments on commit ab83b12

Please sign in to comment.