User Tools

Site Tools


cs190m-assignments

This is an old revision of the document!


Due 10/8/08 (in class)

  1. Print the “What makes a good program?” set of rules (from lecture 2008-10-06). Mark each rule as supporting one or more of the principles of Simplicity (“S”), Clarity (“C”), and/or Generality (“G”).
  2. Add a junit test module to your project (Project 2B). Submit hardcopy of your test class and include with project submission on regular due date.

Questions for class time discussion (nothing to be handed in, just be prepared to answer):

  1. To what noun does the adjective “polymorphic” apply?
  2. Distinguished between dynamically bound methods and statically bound data members.
  3. On what syntactic structure is a “cast” applied?
  4. Do casts generate compile time or runtime errors?
  5. What is “Hoare's rule of consequence” and how does it apply to exceptions and subclass methods?
  6. What is multiple inheritance?
  7. What approach (keyword) in Java is used in place of multiple inheritance?
  8. With what syllable to interface names frequently end?
  9. Name two Java techniques to determine the class of an object.
  10. What is the alternative way to implement a thread without subclassing Thread?
  11. Variables may be of primitive type, class type, array type, and what fourth type?
cs190m-assignments.1223234040.txt.gz · Last modified: 2008/10/05 12:14 by jtkorb