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, 1 month agoAndres_Espinosa1
3 years, 7 months ago[Removed]
4 years, 5 months agoZhukovPeter
4 years, 10 months agobarea
4 years, 11 months ago