subject

Define a class named Document that contains a member variable of type string named text that stores any textual content for the document. Create a function getText() that returns the text field and a way to set this value. Next, define a class for Email that is derived from Document and that includes member variables for the sender and recipient. Implement appropriate accessor and mutator functions. The body of the email message should be stored in the inherited variable text. Test both classes in main. Make sure you have appropriate constructors.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
You know the right answer?
Define a class named Document that contains a member variable of type string named text that stores...
Questions
question
Chemistry, 04.08.2019 13:00
Questions on the website: 13722361