From ab83b12d28a23effe4358f5b27ab9ecc8de3eeba Mon Sep 17 00:00:00 2001 From: Monsieur Z Date: Tue, 22 Sep 2015 06:27:34 +0200 Subject: [PATCH] Update Classes.has --- examples/Classes.has | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/Classes.has b/examples/Classes.has index 2cd5a7b..5c17195 100644 --- a/examples/Classes.has +++ b/examples/Classes.has @@ -18,9 +18,6 @@ class Dog { # You can extend classes with class : class BigDog : Dog { - func new() { - } - func growl(this) { println("GRRRR"); } @@ -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(); }