Question
use c++ Language Program that achieves the following: a) creates a parent class ( Parent class is not a template class) of message with following
use c++ Language
Program that achieves the following:
a) creates a parent class ( Parent class is not a template class) of message with following member
variables and getter setter functions
i) message id
ii) from
iii) to
b) Implement a template class( Child class must be template class ) that inherits from this abstract
class, child classes would be
i) textMessageClass
textMessageClass will have "Text"member variable.
ii) mediaMessageClass
mediaMessageClass will have "attachment"member variable
In the template class, define a static function that always returns
the current time which would be used to store in message body
to keep the context of when message was sent.
Write a program that achieves the following: a) croates a parent class of messago with following momber variables and getter setter functions i) message id ii) from iii) to b) Implement a template class that inherits from this abstract class, child classes would be I) textMessageClass textMessageClass will have "text"member variable. ii) mediaMessageClass mediaMessageClass will have "attachment" member variable In the template class, define a static function that alvays retums the current time which would be used to store in message body to keep the context of when message was sent.
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
Step: 1
Hi The answer to the question is given below I have included all the class defini...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