|
|
|
|
|
|
Ch 4 Questions #2 Classes, Object and Methods 1. What
is a method declaration? 2. What
does a method do? 3. How
does a method compare to an if statement or a for
/while loop? 4. Car
variable be declared within a method? 5. What
is a method paramenter? 6. What
elements must be included in the method declaration ? 7. How
many return statements can there be in a method? 8. When
a method is called, what must match in the call? 9. Constructors
are a special type of method. Why? 10. Does
a constructor have a return type? Why? |
|
|
|
|
|