View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Fall 2004 Final Exam Review: O-O Testing

a) _no__ Methods of the subclass access and change only instance variables defined in the subclass.

b) _yes_ Methods of the subclass access parent class instance variables plus access and change subclass instance variables.

c) _yes_ Methods of the subclass access and change both subclass and parent class instance variables.

d) _no__ Methods of the subclass call methods of the parent class.

e) _yes_ Methods of the subclass define or override methods used by other methods defined in parent class.


b) _no_ Methods of the subclass access parent class instance variables plus access and change subclass instance variables.

It is my understanding that if the variables are only read, then they are always in a state in which the superclass expects them. If they are modified by the subclass, as in c, then the methods must be retested.


oops yea you're right.. read the question wrong on part b


Link to this Page