• 2022-06-07
    class Count {public int count;public Count(int c) {count = c;}public Count(){count = 1;}}public class Test {public static void increment(Count c, int times) {c.count++;times++;}public static void main
    A: myCount.count=4 times=0
    B: myCount.count=4 times=1
    C: myCount.count=3 times=1
    D: myCount.count=3 times=0
  • 举一反三