Respuesta :
Answer:
Check the explanation
Explanation:
There are 4 errors.
public keyword
string is not any datatype in c. It would be char.
undeclared identifier for both this.id and this.name
Determine the output:-
It would be 33 34 34.
33 is their because the value will be decremented afterwards as we are using the postfix increment operator and when we are calling movePoint(p,1,1) we are increasing 33 to 34. And we are using System.out.print which will print the values in one line.
So it prints 33 34 34
Answer:
output :
34
34 34
Explanation:
output :
34
34 34
Having that the variable y is passed as pass by value to method increment Integer, this is even as y value incremented it doesn't effect actual y value.
Hence, having seen this, y will not be incremented after the execution of method and to move Point method we passed point object
and we accessed X,Y through point object that's why they incremented.