AP Test Take Home Quiz #1         NAME_______________________________ PERIOD ______

For each of the following terms, find the best keyword or keywords (where applicable) in Java and explain what the term means. Then give an example of implementation. (I am not looking for a full-blown class implementation, just a line or few lines of code that make clear you know how to use the concept.

 

Inheritance

Keyword:

Meaning:

 

Delegation

Meaning:

 

Polymorphism

Meaning:

 

Overloading

Meaning:

 

Public interface of a class

Keyword:

Meaning:

 

Interface (fun fact: interfaces can extend other interfaces)

Keyword: interface

Meaning:

 

 

 

Encapsulation

Keyword:

Meaning:

 

Invariant

Meaning:

In terms of loops:

In terms of classes:

 

Linked List

Class name:

Meaning:

Doesn't Scheme Rock? YES

 

Iterator

Keyword:

Meaning:

 

List Iterator (Aha! Do you need to reconsider your explanation for plain "Iterator"?)

Keyword:

Meaning: