Section 4.11 ObjUse-WE5-P1
Subgoals for Calling a Method.
-
Write (instance / class) dot method name and ( )
-
Determine whether parameter(s) are appropriate
-
Number of parameters passed must match method declaration
-
Data types of parameters passed must be compatible with method declaration
-
-
Determine what the method will return and where it will be stored
-
Evaluate right hand side of assignment. Value is dependent on method’s purpose
Subsection 4.11.1
Exercises Exercises
2.
3.
You have attempted 1 of 5 activities on this page.