This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: System.out.println("c2: "+c2.iGet( )); } } • The i feld is private • in iCopy , the this reFerence can access a private feld oF another object. • is this legal? • is it good programming practice? • what are the costs? • what are the benefts? • How about with packages, package private, etc? Wednesday, October 26, 2011...
View Full Document
- Fall '11
- Design pattern, static int, good programming practice, basic reference operations