Question: Class Message Private data: A string named to (which is receiver's phone number). An object of type T. Name it m_data . Public static const
Class Message
- Private data: A string named to (which is receiver's phone number). An object of type T. Name it m_data.
- Public static const data for to with default value of "000-000-0000".
- Public constructors: default constructor (no-op), non-default constructor: taking a string (to) and a T object.
- Public destructor: no-op.
- Public accessor/mutator:
- get_data: return m_data.
- set_data: taking a T object and assigning it to m_data.
- get/set for "to"
This is a c++ question, please help me.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
