•string is a C++ class, which has data
types and
functions associated with it.
•Other classes may have a length function. To get the length function associated with string, we use the dot operator with a string variable.
•string has a data type associated
with it to store a string length, string::size_type. Another class could also have size_type.
•string::size_type specifies the size_type associated with string.