Created
January 18, 2016 18:09
-
-
Save DavidSSL/3e06b22dea79484d1858 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main() | |
{ | |
Person.Eats(); | |
} | |
} | |
public class Person | |
{ | |
// 2 Method compatible with PersonEatsDelegate | |
public static void Eats() | |
{ | |
Console.WriteLine("The person eats!"); | |
} | |
public static void Says(string message) | |
{ | |
// Some implementation | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment