subject

Can somebody plz explain this question to me?

what is the output of the program shown below?

public class someclass
{
private int x, y;

public someclass (int xvalue, int yvalue)
{
x = xvalue;
y = yvalue;
}
public void m1()
{
x = 30;
system. out. print((y + 1) + " ");
}
public void m2()
{
m1();
system. out. print(x + " ");
}
}
public class tester
{
public static void main (string[] args)
{
int x = 10;
int y = 20;
someclass z = new someclass(y, x);
z. m2();
z. m1();
}
}

21 10 21
21 30 21
11 30 11
1 10 11
11 30 21

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:10
(328 inc. 448 ind. 480 in25. john has a collection of toy cars. he has 2 red cars, 4 blue cars, 4 black cars, and 6 yellowcars. what is the ratio of red cars to yellow cars? a. 1: 2b. 1: 3c. 1: 626. the net of a right triangular prism is shown below.
Answers: 2
question
Computers and Technology, 24.06.2019 06:00
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is: censoredex: if userinput is "dang, that was scary! ", then output is: dang, that was scary! note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.#include #include using namespace std; int main() {string userinput; getline(cin, userinput); int ispresent = userinput.find("darn"); if (ispresent > 0){cout < < "censored" < < endl; /* your solution goes here */return 0; }
Answers: 3
question
Computers and Technology, 24.06.2019 11:30
Why is body language an important factor in a business meeting
Answers: 1
You know the right answer?
Can somebody plz explain this question to me?

what is the output of the program shown b...
Questions
question
Physics, 07.12.2020 20:50
question
English, 07.12.2020 20:50
question
Spanish, 07.12.2020 20:50
question
Chemistry, 07.12.2020 20:50
question
History, 07.12.2020 20:50
question
Biology, 07.12.2020 20:50
question
Mathematics, 07.12.2020 20:50
Questions on the website: 13722359