public class Bird { private static int id = 0; private String kind; public Bird(String requiredKind) { id = id + 1; kind = requiredKind; } public S
because we are calling toString in the end. When toString takes value of id to return its always 2. Better to print references one by one .
toString
id