Question: I need this in c++ please: Create two simple classes. DataPacket and CodePacket. DataPacket contains a string member to store secret messages CodePacket contains ipAddress
I need this in c++ please:
Create two simple classes. DataPacket and CodePacket.
DataPacket contains a string member to store secret messages
CodePacket contains ipAddress (just integer).
You main program should be able to dnamically create and construct three DataPacket and three CodePacket objects
The datapacket objects that contains the secret messages should be secure and immutable.
The class DataPacket should also ensure that no function is able to change the private data containing the secret message. Write one message that checks to see if the message is "RAW". In that case, war is declared.
Create three pointers that point to each CodePacket. These are specialized pointers each corresponds to a codePacket. IP address >2000 are out of the country and must be brought to notice by a cout command.
Create an object called sneaky that has an IP address > 2000 but is able to get under the radar and no get detected.
Rubric
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
