Replace
tester.setName(testers);
with
tester.setName("testers");
As your Family class's setName()
method takes a String
object and String
needs to be created either as above example or as below example:
String testers = new String("testers");
//and then you can use above String object as in your code snippet (as follows)
tester.setName(testers);