simple class updated
This commit is contained in:
parent
3ef3d385f7
commit
5f9b6fcda0
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue