chinmay.sahoo
New member
Class constants are fine as long as they’re willing to do our bidding, but their limitations tend to show up early. The value of a constant can be set only when it’s defined, and it cannot be defined inside methods in a class. You can only assign plain values to a constant; there is no way to assign an object to it. You can’t even use string concatenation when defining a constant.