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




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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
