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
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
Get step-by-step solutions from verified subject matter experts
