We can add two string class object let’s say
string str1="hello"
string str2="world"
string final =str1+str2;
or
string f=str1.append(str2);
What is the difference between these two methods??
order in which they add or implementation or anything else??
operator+ will add two strings together and generate a new string with the value. Where as append will take a string and concatenate to the end of your string.
Also, append has more features like only append a part of that string
More on append here.