Null object pattern: Difference between revisions

Content deleted Content added
Line 237:
class Dog : Animal
{
public override void MakeSound()
{
Console.WriteLine("Woof!");