I am wondering how I have to handle with booleans in code.
Let's say I've got a Human class:
public class Human {
private final static int NEWBORN = 0;
private int age;
private boolean married;
public Human() {
age = NEWBORN;
married = false;
}
...
}
Is false in this case a magic number AND should I create a constant like I did with age?
If not, is there any case I have to handle booleans?