上海交通大学交大密西根 联合学院·一 ■ 181 UM-SJTU Joint Institute University of Michigan Shanghal Jiao Tong University Object Usage To use functions defined in an object,use object name followed by a period and the method name as follows console.printLine ("add two integers\n"); int1 console.readInt ("Input an integer"); console.disp (int1X,int2,intSum); Note here that,the function printlineObject Usage Object Usage • To use functions defined in an object, use object name followed by a period and the method name as follows console.printLine (“add two integers\n”); int1 = console.readInt (“Input an integer”); … console.disp (int1X, int2, intSum); • Note here that,the function printLine () and readInt () are not defined in