Java Reference
In-Depth Information
1 Using Object Terminology (continued)
If savings account is the object, give an example of each of the following as it
relates to that savings account.
1. superclass
2. subclass
3. attribute
4. method
5. instance
6. trigger
7. event
8. inheritance
9. encapsulation
10. polymorphism
2 Writing Pseudocode
Begin
Write pseudocode to describe
the logic illustrated by the flow-
chart shown in Figure 1-24. For
additional information about
pseudocode, see Appendix A.
Total = 0
Yes
No
Status =
Female?
Add 1 to Female
Student Counter
Add 1 to Male
Student Counter
Add 1 to Total
Yes
Total
< 25
No
End
FIGURE 1-24
 
Search WWH ::




Custom Search