The String Class
In C++ there are two ways to process strings. C-Strings which are an array of characters terminated by a null character, or the C++ style string object. The string class hides the details of how the string is stored from the user – remember one of the tasks of a class is to abstract the…