What’s on Test #2
Tuesday, March 30, 2004
100 Points
Section 5.7 Vectors
- contain Objects
- compare to arrays
Chapter 6
- Section 6.1 Class Hierarchies and Inheritance
- Section 6.2 Operations in a Class Hierarchy
- Section 6.3 Polymorphism
- Section 6.4 Interfaces
- Section 6.5 Abstract Classes
- Section 6.6 Not included
- Section 6.7 Packages and Visibility
- Section 6.8 Testing
- Section 6.9 Common Programming Errors
Class diagrams
- Single class diagrams – name, attributes, methods
- Multi-class diagrams – association relationships (using), composition relationship (has-a), inheritance relationship (is-a), interfaces, abstract classes
Labs 5-6
Terms
- abstraction
- encapsulation
- is_a
- has_a
- uses
- inheritance
- composition
- reuse
- overloading
- overriding
- polymorphism
- signature
- parent/base/super class
- child/derived/sub class
- visibility
- shadowing data fields
- interface
New Java Language features
- extends
- interface
- implements
- super
- this
- access modifiers (private, public, protected)
- anonymous reference
- instanceof
- package
- import
Sorts of Questions:
- Draw a class diagram
- Given some code, predict the output (about 1/3 of the test)
- Given some code and a problem description, fill in the missing parts (about 1/3 of the test)
- Define simple terms (such as abstraction, encapsulation, uses, extends, inheritance, composition, reuse, overloading, overriding, polymorphism, signature, etc.)
- Explain a concept