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: True
Explanation:
Yes, the given statement is true that the network administrator are basically involve in the select and implement the various network security measures like the access code and firewall.
The network administrator is basically responsible for managing, implementing and troubleshooting the LAN areas that is local area network in the organization. The network administrator is the technology which is widely used now a days for efficient development. It is also interface with the internet and wide area networks (WAN).
Answer:
There are various reasons that the author gives like making new friends. However, there is the best reason that the author has given. The author give the reason that your child is going to learn new skills and activities, and this is the best reason for choosing day camp rather than babysitter. And this will make your child smarter, and they will start looking at the world with a new perspective certainly.
Explanation:
Please check the answer section.