Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
interface IPrintAddress
{
void PrintAddress() { WriteLine("rubikscode.net"); }
}
class Blog : IPrintAddress { } // Doesn't cause error!
IPrintAddress i = new Blog();
i.PrintAddress(); // prints "rubikscode.net"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment