Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            Person cloneOne = new Person();

            cloneOne.FirstName = "Adrian";
            cloneOne.LastName  = "Ipster";
            cloneOne.Country   = "NoWhere";

            Person cloneTwo = new Person();

            cloneTwo.FirstName = "Patricia";
            cloneTwo.LastName  = "Lorry";
            cloneTwo.Country   = "Brazil";

            Person cloneThree = new Person();

            cloneThree.FirstName = "Dany";

            Console.WriteLine(cloneOne.FirstName);
            Console.WriteLine(cloneTwo.FirstName);
            Console.WriteLine(cloneThree.FirstName);

            DisplayMessage();
            cloneTwo.DisplayMessage();
        }