In Chapter 11 example Program 1
In program.cs
We are creating an instance of Cow class and assigned it to
an array of type Animal.
but in next line without creating an instance of Chicken class
we are assigning it to the array
Code:
animalArray[1]=new Chicken("Ken");
here what's the name of the instance of Chicken Class i.e object name
When calling myAnimal.Name
Code:
Console.WriteLine("New {0} object added to Array collections,Name={1}",myAnimal.ToString(),myAnimal.Name);
what happens to the code.Please
split and explain the execution cycle