CS2_17_ImplementationDetails

CS2_17_ImplementationDetails - CS2 Module 17 Category OO...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CS2 Module 17 Category: OO Concepts Topic: Java Implementation Details Objectives Scope Shadowing Chaining
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CS 2 Introduction to Object Oriented Programming Module 17 OO Concepts Java Implementation Details Scope, Shadowing and Chaining
Background image of page 2
Scope
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Scope Scope Local variables - variables declared as a part of method: Exist only within their method. Outside of their method, the identifiers have no meaning. Instance and Class variables - variables declared as part of a class, and not within a particular method: Can be seen from anywhere in the instance (i.e. object). Visible within all methods of the class (without passing them as parameters to the methods.) May or may not be visible outside the object. (Typically they should be inaccessible outside the object, we’ll learn how to control this using access modifiers).
Background image of page 4
Scope Scope Within a method, local variable identifiers take precedence over instance variables
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Preventing Identifier Ambiguity Preventing Identifier Ambiguity
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/23/2012 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Tech.

Page1 / 21

CS2_17_ImplementationDetails - CS2 Module 17 Category OO...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online