- 5
- 0
- 约1.01万字
- 约 43页
- 2018-02-17 发布于浙江
- 举报
[其它]05slide
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved. 0-13-222158-6 Objectives To declare methods, invoke methods, and pass arguments to a method (§5.2-5.5). To use method overloading and know ambiguous overloading (§5.6). To determine the scope of local variables (§5.8). To know how to use the methods in the Math class (§5.9). To group classes into packages (§5.12). Introducing Methods(P130 §5.1) Creating a method(P130, §5.2) A method has the following syntax: modifier returnType methodName(list of parameters){ //method body } Note
原创力文档

文档评论(0)