• 2021-04-14
    给出下列【代码】注释标注的代码的输出结果。class Tom {int weight = 10;void Tom(){weight = 18;}}public class E {public static void main(String args[]) {Tom cat = new Tom();System.out.println(cat.weight); //【代码】}}