method calling within separate class

I am trying to call the public function of one class within a method of another to assign several different names to an array However, it says the = operator is not defined. How else can I do this?
Last edited on
SetName() returns nothing. Don't you mean GetName()?
Topic archived. No new replies allowed.