Page 505 - Introduction to Programming with Java: A Problem Solving Approach
P. 505

                 0.0 Last A-Head 471
12
 CHAPTER
   Aggregation, Composition, and Inheritance
Objectives
• Understand how things are naturally organized in aggregations and compositions. • Implement aggregation and composition relationships within a program.
• Understand how inheritance can be used to refine an existing class.
• Implement an inheritance hierarchy within a program.
 • Learn how to write constructors for derived classes. • Learn how to override an inherited method.
Apago PDF Enhancer
• Learn how to prevent overriding.
• Learn how to use a class to represent an association.
Outline
12.1 Introduction
12.2 CompositionandAggregation
12.3 InheritanceOverview
12.4 ImplementationofPerson/Employee/FullTimeHierarchy
12.5 ConstructorsinaSubclass
12.6 MethodOverriding
12.7 Using the Person/Employee/FullTime Hierarchy
12.8 ThefinalAccessModifier
12.9 UsingInheritancewithAggregationandComposition
12.10 DesignPracticewithCardGameExample
12.11 ProblemSolvingwithAssociationClasses(Optional)
 471










































































   503   504   505   506   507