Answer:
#include <iostream>
using namespace std;
class ProblemSolution {
private:
int num1, num2;
public:
ProblemSolution(int n1, int n2) {
num1 = n1;
num2 = n2;
}
int calculateSum() {
int sum = 0;
sum = num1 + num2;
return sum;
}
void printSum() {
// calculateSum will return sum value that will be printed here
cout <<"Sum = "<< calculateSum();
}
~ProblemSolution() {
cout << "\nDestructor is called " << endl;
};
};
int main() {
int a, b;
cout << "Enter a: ";
cin >> a;
cout << "Enter b: ";
cin >> b;
// Initiallizing object pointer of type ProblemSolution
ProblemSolution *objPtr = new ProblemSolution(a,b);
// printing Sum
objPtr->printSum();
// delete objPtr to relaease heap memory :important
delete objPtr;
return 0;
}
Explanation:
we will initialize a pointer "objPtr" and initallize the constructor by passing 2 values a and b followed by the keyword "new". the keyword "new" allocates memory in the heap. we can access class member functions using arrow "->". it is important to delete objPtr at the end of the program so that the heap memory can be freed to avoid memory leakage problems.
Answer:
Try the Cesar cypher
Explanation:
The Cesar cypher shifts the letters one side
Go on to power point and go onto templates and then it will show templates
Answer:
work remotely
Explanation:
The best solution would be to allow the developer to work remotely full-time. This means that they would be working from home all the time and would most likely communicate with the rest of the team via other means. Usually, unimportant communication would be done through e-mail while important issues and team meetings would be done through video conference. This will allow you to hire this developer and add him/her to the team without having to worry about any issues arising due to transportation.
The answer is: <span>Router-on-a-stick</span>