Question: c++ thank you Create a class called EmailMsg that will mimic an email message. EmailMsg will contain the following 4 private attributes and their types:

c++

thank you

c++ thank you Create a class called EmailMsg that will mimic an

email message. EmailMsg will contain the following 4 private attributes and theirtypes: string sender (to represent the sender of the email message) bool

deleted (true if the message was deleted) string message (the text of

Create a class called EmailMsg that will mimic an email message. EmailMsg will contain the following 4 private attributes and their types: string sender (to represent the sender of the email message) bool deleted (true if the message was deleted) string message (the text of the message) int msgTime (an indicator of the time the message was received. the later the message) The higher the value, In addition, create properly named public setters and getters for the attributes. The getter for deleted must be named sDeleted(). Create 2 constructors, a default and a 4-arg constructor that will set the 4 attributes in the order of sender, deleted, message, and msgTime. The default constructor must set the following values: sender="NONE" deleted=false message="EMPTY" msgTime=-1 Current file: main.cpp 1 #include 2 #include "Email.h" 3 using namespace std; 4 5 int main() //As an example, this code must work without error Email em1, em2("my@pple.com", false, "Hi Tim, hope you're good.", 32); 7 8 9 10 11 12 13 14 15 16 17 if(!em2. isDeleted()) cout 2 #include 3 using namespace std; 5 //Put the Email class def here 6 //Do NOT implement any methods here. Methods will be implemented in Email.cpp 71

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!