Class Members

Please read sections 6.6-6.9.

6.10 is optional

  • local variable, instance variable, static variable / class variable
  • static method / class method
  • dependency
  • is-a vs. has-a
  • The special “this” variable
  • types of testing
  1. If you program a class and you do not code a constructor, does the class have a constructor? (OK, this one is from the tail end of 5.4 on last reading, but it’s good to revisit.)
  2. Describe in your own words the difference between static (class) and non-static (instance) methods.
  3. In what situations might method overloading be helpful?

What was particularly interesting, confusing, or exciting to you in this reading?\