Please enable JavaScript.
Coggle requires JavaScript to display documents.
class 8 - methods (More of how it works (it goes from calling method to…
class 8 - methods
More of how it works
it goes from calling method to the called meth, processes, returns to calling meth
-
-
-
-
-
-
what is a method
-
-
-
ex: Math.pow(1,2) pow = meth Math = class (1,2) = parameters
-
-
-
-
implementing
what does it need to do?
-
-
-
- add modifiers: public static - public lets it be used by oth obj.s
-
- test meth to mke sur it works
-
-
/** Computes the volume of a cube. param sideLength the side length of the cube. return the volume