Search code examples
computer-scienceterminology

Is there a term for methods or functions that answer an inquiry


Is there a computer science term for methods that answer a question (i.e. is_kind_of, not_nil?, isEmpty, etc...


Solution

  • A method that returns only a true-or-false result is called a "predicate method".