Create an object of class String, s1, from namespace Savitch and an object, s2, of class String, s1, from namespace Teague. Use a member function to give to each object a C-string message that tells of which namespace the class is a member.
Given the namespace groupings that contain class definitions:
```
{
class String
{
public:
char* fetchString( );
void storeString(char[]);
private:
char str[ 100 ];
int length;
};
}
namespace Teague
{
class String
{
public:
char* fetchString( );
void storeString(char[]);
private:
char str[ 100 ];
int length;
};
}
```
```
// The above namespace groupings are included here.
int main()
{
Savitch::String Sav_String;
Sav_String.storeString("From namespace Savitch");
Teague::String Teag_String;
Teag_String.storeString("From namespace Teague");
}
```
You might also like to view...
Which of the following statements is false?
a. References to interface types do not have access to method toString. b. Method toString can be invoked implicitly on any object. c. With inheritance, classes and their inherited classes tend to be very similar. d. Dramatically different classes can often meaningfully implement the same interface.
The internal rate of return is a financial measurement that is used to evaluate an investment
Indicate whether the statement is true or false
Case EX 5-1Cheryl is planning to use Formula AutoComplete to help her enter some formulas in her new worksheet.Cheryl has found the formula she wants to use by using Formula AutoComplete. How can she access a Screen Tip to guide her in entering the necessary arguments?
A. Double-click the name of the function B. Double-click anywhere inside the worksheet C. Double-click anywhere outside the worksheet D. None of the above
Mesh lines are joined at their intersections by what?
A. anchor points B. mesh points C. mesh patches D. corner points