I have several classes with differently object type cat, dog and horse. I have 
one root class where is method doSomethig with only one parameter which I want to call in rest of classes. How to write the method without type conflict. This is only example.

```
Cat cat; 
Dog dog;
Horse horse;

protected void doSomething(one parameter){
  cat.doMeow();
  dog.doBark();
  horse.run();
}

```