Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have a program to write for C++, it is asking that under a class I write under

ID: 3737209 • Letter: I

Question

I have a program to write for C++, it is asking that under a class I write under protected, a pointer sender and receiver. If someone could please explain this to me I would appreciate it.

There is no sample code as I am just starting to write it. These are the instructions

3 - Program Description This homework will simulate encrypted communication between two clients, who are connected via a server. There will be four classes required in total. This means you will need to turn in 9 files server.h, server.cpp, client.h, client.cpp, messageServer.h, messageServer.cpp, encodedServer.h, encodedServer.cpp, main.cpp. The functions that are include here are the absolutely necessary functions. You can adod additional functions if you need to in order to fulfill requirements. That is, a server function that returns the id of the sender or the id of the receiver.

Explanation / Answer

Hello There,

The instructions provided says that

PFB class definition of server class:

----------------------------------------------------------

class Server{

protected:

Client *sender, *receiver;

public:

virtual void sendMessage() = 0;

virtual void establishConnection() = 0;

}