You are responsible for the following for CS1 Quiz 4
Everything we've done so far with emphasis on
- Liang chapters 6, 7.11-7.16, 8.5
- Encapsulation in OOD
- What is encapsulation?
- What unit in OOD is used for encapsulation?
- How does it provide integrity of state?
- How does it hide implementation details?
- How does it encapsulate complex tasks?
- Scope and Lifetime in Java
- What identifiers are known where?
- When does memory for the identifier get allocated?
- How long does the identifier exist?
- How do we have to name the variable to access it, i.e., does
it require any qualification, e.g., this. or
objectName.?
- The use of this in Java
- When can you use this to refer to an instance
variable of an object?
- When must you use this to refer to an instance
variable of an object?
- Arrays
- Understand why arrays are considered to be objects without a
class.
- Know how to declare AND instantiate an array
- Know how elements of an array are initialized
- Know what length is with respect to arrays
- Passing arrays and array elements to methods
- Be able to draw memory diagrams for array and array element
usage
- Know how to search an array
- Know how to fill an array of primitive types, of objects
- Know how to copy an array (shallow and deep)
- Know how to resize an array - sort of a trick, can't resize
instead, you create a new array, and copy elements over.
- Command line arguments
- Multi-dimensioned arrays (2-dimentional in particular)
Phil White
November 2, 2004
http://www.cs.rit.edu/~paw/cs1/Quiz4.html