Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started