Question: I need to make a c++ program that involves herritance: -Create a Cipher class that contains: protected: string alphabet; public: parameter constructor setter for alphabet
I need to make a c++ program that involves herritance:
-Create a Cipher class that contains:
protected:
string alphabet;
public:
parameter constructor
setter for alphabet
getter for alphabet
encrypt(message)=0 function
decrypt(ciphertext)=0 function
-Create CaesarCipher class with Cipher heritance:
private:
variable shift int type
public:
parameter constructor
Setter for shift
getter for shift
encrypt(message) function definition
decrypt(ciphertext) function definition
-Create AtbashCipher with Cipher heritance:
encrypt(message) function definition
decrypt(ciphertext) function definition
-Create Message class:
private:
variable message and encryptionMethod type string
Variable caeser type CeasarCipher
Variable atbash type AtbashCipher
public:
Parameter constructor
message setters
message getters
sendMessage()
sendMessage(int)
recieveMessage(ciphertext, int)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
