Prefer the second option. If you use the first option (preprocessor), you are limiting your flexibility with the object.
Consider the following… You won’t be able to compare strings this way:
if (str1 == "some string")
{
// ...
}
Prefer the second option. If you use the first option (preprocessor), you are limiting your flexibility with the object.
Consider the following… You won’t be able to compare strings this way:
if (str1 == "some string")
{
// ...
}