Let say I have 3 classes that all extend the same class...

```
public class Foo {
     private String name;
     ...
}
public class FooExtend1 extends Foo {
     ...
}
public class FooExtend2 extends Foo {
     ...
}
public class FooExtend3 extends Foo {
     ...
}

```

then I create a util function that changes the property that implements from Foo...

```
public void changeName(??? param1) {
     param1.setName("");
}

```

and I want param1 to be all objects that extends from the Foo class.

Would I have to overload the method or is there another way?