Content deleted Content added
rewrite |
→Extension methods and Instance methods: align comments |
||
Line 49:
class AlphabetMaker
{
public void GetAlphabet()
{ //When this method is implemented, }
}
static class ExtensionMethods
{
static public void GetAlphabet(this AlphabetMaker am)
{ //This will only be called
Console.WriteLine("ABC");
} //method with the same signature.
}
</source>
|