This repository has been archived on 2022-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
|
module lib.mallarduck;
|
|
|
|
import lib.duck;
|
|
import std.stdio : writeln;
|
|
|
|
class MallardDuck : Duck
|
|
{
|
|
void quack()
|
|
{
|
|
writeln("Quack!");
|
|
}
|
|
|
|
void fly()
|
|
{
|
|
writeln("I'm flying");
|
|
}
|
|
}
|