Doesn't matter whether you place them inside the implementation block or not—only methods are part of the class implementation, so the scope of constants won't change regardless.
The k
prefix is a bit dated now. The usual way is to name constants as <prefix><name>
, such as "MDSomeConstant".