Question: Please use C++ code A Tweet is message that has two parts: subject and message. Design a class Tweet that has these two string attributes

Please use C++ code
 Please use C++ code A Tweet is message that has two

A Tweet is message that has two parts: subject and message. Design a class Tweet that has these two string attributes - subject and message. Your class should have a constructor function, accessor functions for returning the subject and message, and a mutator function which accepts a string newmessage and changes the message attribute to the newmessage. Give BOTH the interface and the member functions as follows. Write the class interface (definition) for Tweet including constructor, accessors, and mutator functions. Write the constructor Tweet which accepts the strings for the subject and message, and sets the attributes accordingly. Write the accessor function which returns the subject attribute. Write the mutator function which accepts a string parameter and uses that string to change the message attribute

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!