I was wondering how to name new objects something different each time a method is run
public class Horse extends Animal{
int horsenum = 0;
}
public void reproduce(Horse h){
horsenum ++;
Horse newHorse = new Horse(); //Here is where I would like to name the new horse "newHorse1, newHorse2, etc."
add a property of Horse.Name ofType string and name it what you will…