patterns/adapter/simpleadapter/lib/mallarduck.d

18 lines
214 B
D
Raw Normal View History

2022-12-05 07:38:19 +00:00
module lib.mallarduck;
import lib.duck;
import std.stdio : writeln;
class MallardDuck : Duck
{
void quack()
{
writeln("Quack!");
}
void fly()
{
writeln("I'm flying");
}
}