Provide yourself an example (not one from your instructor) of how you use a particular command thatwill help jog your memory in the future when you need that command again. You must provide a littlecode as well as a written explanation with this one.
Scope refers to the area of a program in which an identifier is valid and has meaning. Instance variables are usually declared private and have class scope. Class scope begins at the opening left brace ({) of the class definition and terminates at the closing brace (}). Class scope enables methods to directly access all of its instance variables. The scope of a local variable extends from the point of its definition to the end of the enclosing block. The scope of a parameter is the entire body of its method.
Wednesday, October 3, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment