Question
Specifications for the arizona::string class public: Declare the default constructor Declare parameterized constructor that accepts a std::string variable which sets the private std::string variable Declare
Specifications for the arizona::string class public: Declare the default constructor Declare parameterized constructor that accepts a std::string variable which sets the private std::string variable Declare function to return the private std::string variable. Accepts no input check that the private variable has been set. If it has not, print "ERROR: arizona::string uninitialized (test will check for this exact string). Declare function to return a the flipped string stored in the private variable. Accepts no input Declare - (minus) operator to set the private string value Declare ~ (tilde) operator to return the size of the string (an integer value) Declare function to clear the data member, i.e., sets back to the default value. Returns nothing and accepts nothing private: Declare the string (from std) that is stored Declare function to return a flipped string. Returns a std::string variable that is the flipped string of what is stored in the private variable. Accepts no input. Sample code: #include "string.hpp" #include "stringTests.hpp" #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started