Problem Solving and Programming Concepts
Adam Merrifield (2697795).
Chapter 9 Review Questions: pg 397
- c. A method can contain one or more other methods.
- a. a header
- c. in scope
- b. a value in a method call
- d. parameter list
- b. a local name for the parameter
- c. must have the same name
- b. myMethod(12, "Hello")
- a. num
- d. myMethod(test, "A")
- c. match the data type used before the method name in the header
- b. passed by value
- c. returns nothing
- a. passed by reference
- a. name
- a. num cal cul ateTaxes(stri ng name, num amount)
- d. ambiguous
- d. none of the above
- c. implementation hiding
- b. increase cohesion