Multiple choice .net c-sharp

Concatenating with strings are done with:

  1. reserved words

  2. method calls

  3. operator overloading

  4. operator overloading and method calls

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

String concatenation in C# supports both operator overloading (the + operator) and method calls (String.Concat, String.Join, StringBuilder.Append, etc.). You can write s1 + s2 or String.Concat(s1, s2) - both approaches are valid.