Aug 6, “Dot” notation Public instance variables of an object are referenced using the “dot” operator (like members of a struct in C) myDate.month = “July”; myDate.day = 4; myDate.year = 2007; Instance variable can be used like any other variable of the same type. The set o...
Comp 412, Fall Concrete Example: The Java Name Space Code within a method M for object O of class C can see: Local variables declared within M ( lexical scoping ) All instance variables & class variables of C All public and protected variables of any superclass of C Classes defined in t...