Unformatted text preview: a. whole-part relationship b. is_a relationship b. dependency relationship d. associative relationship 8-9. Write a method called ‘average’ that accepts two integer parameters and returns their average as a floating point value. (Exercises at end of chapter and on my web page) 10. (True, False) The ‘this’ reference allows a programmer to distinguish the instance variables of a class from corresponding method parameters with the same names. 11. In a relationship between objects of classes, when one object sends a message to another object of a different class expecting services to be provided, we would normally term this a: a. dependency b. aggregate c. inheritance d. polymorphism...
View Full Document
- Summer '08
- Object-Oriented Programming, Subroutine, instance variables, static variable