正在加载图片...
上海交通大学交大密西根 联合学院·一 ■ 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
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有