Question: LANGUAGE C++. Use the code to do the 3rd question. Test.cpp 1 Welcome Guide #include using namespace std; class wordt private: string value; int size;

 LANGUAGE C++. Use the code to do the 3rd question. Test.cpp
1 Welcome Guide #include using namespace std; class wordt private: string value; LANGUAGE C++. Use the code to do the 3rd question.

Test.cpp 1 Welcome Guide #include using namespace std; class wordt private: string value; int size; value - V; 17 9 public: 10 Word(){ 11 value = 12 size - e; 13 } Word(string v) { 15 16 size = v.length(); } 18 void setValue(string v){ 19 value = v; 28 } 21 22 string getValue() { 23 return value; 24 } 25 int getSize(){ 26 return size; 27: } 28 }; 29 30 int main() { 31 32 Word a, b("abc"); 33 cout > to input Word objects Class template (fill in this template): class Wordt ..... NN. friend ostream& operator>(istream& is, Word& f){ } } Use following main() to test your class. int main(){ Word a,b("abc"); cout>a; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!