Page 279 - Introduction to Programming with Java: A Problem Solving Approach
P. 279
0.0 Last A-Head 245
CHAPTER 7
Object-Oriented Programming— Additional Details
Objectives
• Improve your understanding of the relationship between a reference variable and an object. • Learn what happens when you assign a reference.
• Learn how Java recycles memory space.
• Learn how to compare the equality of two different objects.
• Be able to swap the data in two different objects.
• See how a reference parameter can enhance data transfer to and from a called method.
Apago PDF Enhancer
• Learn how to execute a sequence of several method calls in the same statement.
• Learn how to create alternative variations for a method.
• Learn how to combine object creation and initialization in a constructor.
• Learn how to avoid code redundancy by nesting method and constructor calls.
• Learn how to partition a large problem into several smaller problems with multiple driven classes.
Outline
7.1 Introduction
7.2 ObjectCreation—ADetailedAnalysis 7.3 AssigningaReference
7.4 TestingObjectsforEquality
7.5 PassingReferencesasArguments
7.6 Method-CallChaining
7.7 OverloadedMethods
7.8 Constructors
7.9 OverloadedConstructors
7.10 ProblemSolvingwithMultipleDrivenClasses
245