xxxxxxxxxx
import std.stdio;
void main(string[] args)
{
inter1 c1 = new foo();
foo c2 = new foo();
writeln("Origin=interface: ", c1.strategyName);
writeln("Origin=class: ", c2.strategyName);
}
interface inter1 {
string strategyName() const;
}
class foo : inter1 {
string strategyName() const {
return "foo";
}
}