- Aug 24, 2000
- 4,153
- 4
- 81
So this has to do with homework... I'll just put that out there up front.
AF and RI; For the most part I understand what they are, why they exist, and to a lesser extent how to implement them but what about when it comes to instance variables?
Should AF and RI also address instance variables contained within a method? And if so, where in the body of the code should this information appear?
I typically place AF and RI right after local variable declarations while implementing the repOK() just before the constructor and overriding toString() for AF (where feasible).
What is the correct format (or Industry practice) for capturing instance variables with AF (if it's even done at all) and second to that, how would you even check them with repOK(); <==Or did this just answer my own question?
Thanks guys (and gals)
-JR
AF and RI; For the most part I understand what they are, why they exist, and to a lesser extent how to implement them but what about when it comes to instance variables?
Should AF and RI also address instance variables contained within a method? And if so, where in the body of the code should this information appear?
I typically place AF and RI right after local variable declarations while implementing the repOK() just before the constructor and overriding toString() for AF (where feasible).
What is the correct format (or Industry practice) for capturing instance variables with AF (if it's even done at all) and second to that, how would you even check them with repOK(); <==Or did this just answer my own question?
Thanks guys (and gals)
-JR