Skip to content

Instantly share code, notes, and snippets.

@PhiHuyHoang
Created October 3, 2018 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PhiHuyHoang/556a4c07e4821a44599324c798c515a6 to your computer and use it in GitHub Desktop.
Save PhiHuyHoang/556a4c07e4821a44599324c798c515a6 to your computer and use it in GitHub Desktop.
class Program
{
static void Main(string[] args)
{
Console.InputEncoding = Encoding.UTF8;
Console.OutputEncoding = Encoding.UTF8;
Uyen uyen = new Uyen("Uyên", "Em ăn cơm chưa", "Anh ăn cơm rồi");
Console.WriteLine($"{uyen.name}, {uyen.say}, {uyen.response}");
Uyen cloneOfUyen = (Uyen)uyen.Clone();
cloneOfUyen.say = "Anh ghét em lắm";
Console.WriteLine($"{cloneOfUyen.name}, {cloneOfUyen.say}, {cloneOfUyen.response}");
Console.WriteLine($"{uyen.name}, {uyen.say}, {uyen.response}");
Console.ReadLine();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment