Confirm, answer is B. You can play this program in any PHP online playgrounds.
Program:
class Test {
public $var = 1;
}
function addMe(Test $t){
$t->var++;
}
$t = new Test();
addMe($t);
echo $t->var;
output:
2
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
thuanpt
3 years, 2 months agoAndres_Espinosa1
3 years, 8 months ago[Removed]
4 years, 6 months agoZhukovPeter
4 years, 12 months agobarea
5 years ago