loading
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;

class MainClass {
  public static void Main (string[] args) {

    IGreeting gre1 = new EnglishGreeting("Kenan Hancer");

    IGreeting gre2 = new TurkishGreeting("Kenan Hancer");

    IGreetingWriter greetingWriter = new GreetingToConsoleWriter(gre1);

    greetingWriter.WriteText();

    greetingWriter = new GreetingToFileWriter("HelloMessage.txt", gre2);

    greetingWriter.WriteText();
  }
}