C++ String Class is referred to as std:: string. The string class provides us the features to store the characters as a series of bytes which makes us access a single byte of the character taken into account. C++ is an object-oriented language, allows us to declare a series of characters using an object of inbuilt “String” class. This class
String class stores the characters as a sequence of bytes with the functionality of allowing access to a single-byte character. If we want to use the String Class, (String Header) has to include necessarily.
String str;
str = ”Hello World”;
Here String is the name of Class, and the str is the object of class String.
#c++ #c++ string class