A predicate method is tipically one that should return a boolean value (true or false). These methods are useful in a lot of scenarios, like when you have an class with a boolean attribute.
Naming these kind of methods depends on the language you are using, but here are my top priorities.
def is_alive?
@alive
end
public Boolean isAlive {
return alive;
}
Rather than:
zombie.getAlive