Conclusion
We hit four "high points" in this lab: inheritance, polymorphism, abstract classes, and interfaces. Here are some suggestions for further exploration.
- Why do
toString
andequals
almost always have to be redefined? - The
java.util.Stack
supports some methods that are decidedly unrelated to stacks (e.g.contains
,get
, andinsertElementAt
). How do we fix it? - What does the Java Collection Framework contain?
- How does a Java-based graphical user interface work?
Homework Submission
Submit
IntSequence.java
, ResizableIntSequence.java
, and ResizableIntSequenceTest.java
for homework as hw7
.Homework Assignments
Read the following:
- HFJ: Pages 250-255
- HFJ: Chapter 11
- HFJ: Appendix B #4
- JRS: Generics