hi i am currently trying to call a function of another class.
(i am not trying to copy the function over i am trying to calling directly to it)
something like:
class main
{
cow cow1= new cow();
dog dog1 = new dog();
}
i am trying to call for lets say a fucntion called moo from the dog's class fucntion within the dog class.
class dog
{
void woof()
{
moo();
}
}
if this was c++ i would have pass the main's instance variable over to both the cow and dog class upon creation but i have no idea how to do this in c# pls help