Class constants are set within a class and can only be accessed by the class they were set in. They are created a little differently from a typical constant, but share the same characteristics: cannot be unset, changed, should be uppercase, underscore instead of a space. Class constants are defined like so: