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
Step: 1
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