Answer:
I will for sure subscribe!!!!
Explanation:
:)
Method of research deals with large amounts of information that is analyzed and presented statistically is quantitate.
Answer:
Language programming Web's programming language
Explanation:
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:
D
Explanation:
I don't know the language, but it is clear what is going on.
It looks like you are defining a value for a in both commands.
a.multiply(b); looks like you take the value in a (which is 10) multiply it by 25 and put the result back in a. So so far we have 10 * 25 = 250
Note the next command
a.add(b)
looks like you take the current value in a(which is now 250)
and put the value of b (which has not been changed. It is still 25) and put that in a (which is 250).
The result is 250 + 25 = 275
The answer is D. Since I only understand the logic, if this answer is wrong, I wish you'd leave a note.