Overclock.net banner

1 - 3 of 3 Posts

·
Registered
Joined
·
1,519 Posts
Discussion Starter · #1 ·
given a string "hello" +. after the + operator, does the data after the operator has to be either a numeric value(int, float, long,...) or a string type? Can it be any class type or any datatype?
 

·
Registered
Joined
·
3,233 Posts
What? If you're declaring it as a string, then the whole thing is a string, no matter how you concatenate it.
 

·
Registered
Joined
·
1,519 Posts
Discussion Starter · #3 ·
yea, i know. "hello" + int type. int type will turn into a string. what i mean is can it be any data type after the + operator and it will turn into a string.
 
1 - 3 of 3 Posts
Top