Lecture 6 Objectives
At the end of today's class you should
KNOW:
- The difference between overriding and overloading
- That Java provides a built-in LinkedList class
- That because there's no notion of the "rest" of the list for Java's LinkedList class, a technique other than recursion must be used to process the lists
BE ABLE TO:
- Define a LinkedList in Java
Sample Exam Question:
Use the "Racket-style" list definition (with IList, EmptyList, and NonEmptyList) to answer this question. Create an example list containing "apples" as the first element and "pears" as the second element. You should create your example using a single Java statement.