simple class updated

This commit is contained in:
Kolan Sh 2012-11-13 11:40:14 +04:00
parent 3ef3d385f7
commit 5f9b6fcda0
1 changed files with 5 additions and 3 deletions

View File

@ -1,15 +1,17 @@
public abstract class Animal : Object {
public class Animal : Object {
public void eat() {
stdout.printf("*chomp chomp*\n");
}
public abstract void say_hello();
public void say_hello() {
stdout.printf ("parent hello\n");
}
}
public class Tiger : Animal {
public override void say_hello() {
public void say_hello_2() {
stdout.printf("*roar*\n");
}
}