Section 4.7 Assessment: Construct A Scanner
Subgoals for using objects (creating instances).
- Declare variable of appropriate class datatype.
- Assign to variable: keyword new, followed by class name, followed by ().
-
Determine whether parameter(s) are appropriate (API)
- Number of parameters
- Data types of the parameters
Exercises Exercises
2.
3.
4.
5.
You have attempted 1 of 6 activities on this page.