Write a program that uses a class called \"message\".The class message has three
ID: 3612895 • Letter: W
Question
Write a program that uses a class called "message".The class message has three member functions:Message (string content): constructor function required toinitialize the initial message content
Void clear_message(): function called when we need to set thecontent of the message to empty string (i.e. " ")
Void set_message (string content): function needed to set themessage to the content
string get_message(): function needed to get the value of themessage
use the class message to: read two strings (full lines) from theuser and clear the second string only when the first message is"yes". finally print the first and secondmessage.
Write a program that uses a class called "message".The class message has three member functions:
Message (string content): constructor function required toinitialize the initial message content
Void clear_message(): function called when we need to set thecontent of the message to empty string (i.e. " ")
Void set_message (string content): function needed to set themessage to the content
string get_message(): function needed to get the value of themessage
use the class message to: read two strings (full lines) from theuser and clear the second string only when the first message is"yes". finally print the first and secondmessage.
Explanation / Answer
I actually have this book sitting in front of me, can you tell me what chapter/problem number it is?