Answer:
- #include <iostream>
- using namespace std;
- class myinteger {
-
- private:
- int value;
-
- public:
- myinteger(int x){
- value = x;
- }
-
- int getValue(){
- return value;
- }
-
- };
- int main()
- {
- myinteger obj(4);
- cout<< obj.getValue();
- return 0;
- }
Explanation:
Firstly, we use class keyword to create a class named myinteger (Line 5). Define a private scope data field named value in integer type (Line 7 - 8).
Next, we proceed to define a constructor (Line 11 - 13) and a getter method for value (Line 15 -17) in public scope. The constructor will accept one input x and set it to data field, x. The getter method will return the data field x whenever it is called.
We test our class by creating an object from the class (Line 23) by passing a number of 4 as argument. And when we use the object to call the getValue method, 4 will be printed as output.
Answer:
I created a jsfiddle for this: https://jsfiddle.net/tonb/o7uv4cdm/26/
Explanation:
see jsfiddle.
The usual html and body tags are omitted for simplicity. For your stand-alone page you'll have to put them in, as well as additional tags for your inline scripting.
Answer:
Create an answer file named config.xml. Place the file on a USB flash drive and run setup.exe.
Create an answer file named automated.exe. Place the file on a USB flash drive and run
Answer:
11. FLOAT
12.Cholera is caused by ingestion of food or water contaminated with the bacterium Vibrio cholerae
13. ARTIFICIALLY FIBER or PETROCHEMICALS
14.HYDROGEN GAS
15.WATER
16. CLIMATIC CHANGES
17.PROKARYOTIC CELLS
18. PERIOD OR LEFT AND RIGHT SWINGS
19. EXPAND OR GETTING LARGER
20. FREQUENCY