Answer:
Duplicate these displays.
Explanation:
<u>A. Show only on 1</u> <em>displays only the first screen and disconnects the second one</em>
<u>B. Extend these displays</u> <em>displays two different outputs on the same computer</em>
<u>C. Show only on 2.</u> <em>displays only the second screen and disconnects the first one</em>
<u>D. Duplicate these displays.</u> <em>displays the same output for both screen</em>
Answer:
Using word documents instead of paper can save lots of paper especially, when lots of people are doing that already. Using emails can reduce the amounts of letters being sent to people.
The answer is DMNNAMSVR. While in an interactive nslookup session, one would use the DMNNAMSVR keyword to change the DNS server one is using.
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.