Hi,
I saw some code where class was initiated or called like below in myMethod, what does the following code do? It doesn’t have new to initiate the class Animal, so how does this work? Does class Animal have to have constructor with Object as a parameter?
Public void myMethod(Object[] data)
{
Animal a = (Animal) data[0];
}
Thanks in advance!