Java for Engineers and Scientists 1 st Edition Gary J. Bronson
Chapter 11 Additional Class capabilities
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.1 Example of scopes
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.2 Sharing the static Data Member taxRate
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.3 The Storage of Two Date Objects in Memory
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.4a Save the First Value
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.4b Replace the First Value with the Second value
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.4c Change the second Value
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.5 Relating Object Types
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.6 An example of Multiple Inheritance
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.7 Relationship Between Circle and Cylinder Data Members
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.8a Sample Inheritance Diagrams
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11. 8b Sample Inheritance Diagrams
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.9 The DecimalFormat Inheritance Hierarchy
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure Two Objects Containing Reference Data Members
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.11a Before the assignment book 2 = book 1;
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.11b The Effect Produced by Assignment
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.11c The Desired Effect
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.12a Create a New Object and Reference
©2003 Brooks/Cole, a division of Thomson Learning, Inc. Thomson Learning ™ is a trademark used herein under license. Figure 11.12b adjust book2’s Reference Value