Answered step by step
Verified Expert Solution
Link Copied!

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++

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

2. What do you believe is at the root of the problem?

Answered: 1 week ago