예제 #1
0
        static void Main(string[] args)
        {
            Human human = new Human("Louco", 24);

            Console.WriteLine(human.getString());

            Human copyhuman = (Human)human.Copy();

            Console.WriteLine(copyhuman.getString());

            HumanFactory factory = new HumanFactory(copyhuman);
            Human        h1      = factory.CopyHums();

            Console.WriteLine(h1.getString());

            Console.ReadLine();
        }