Use the apstring class to answer the following questions:
- How many constructors are included in the class?
- How many accessor functions are included there?
- List the operators that are overloaded in the apstring class. List them
in the order that they appear in the apstring.h header file. (Do not repeat
any operators twice.)
What is the return type of eachh of the following functions and operators.
(Disregard the const modifier.)
- The find member function?
- The substr member function?
- The overloaded += operator?
- The overloaded = operator?
How many parameters are passed to each of the following member functions?
- find
- substr
- length
- What is the formal parameter name for the apstring class constructor that
constructs an apstring from a string literal?
- List the comparison operators that can be used with apstring objects as
free functions. List them in the order that they appear in the apstring.h
header file but do not list any twice.
- What is the difference between a class member function and a free function?
- What is the return type of the overloaded <= operator?
- What is the return type of the overloaded + operator?
- What is the return type of the overloaded << operator?
- What is the return type of the accessor member function c_str?
- How is this return type different from a simple char? Explain (based on
the purpose of c_str) why its return type must be the answer you wrote in
#17 and not simply a char.