10/7/20 1
Objectives
- Inheritance
Ø Polymorphism Ø Dynamic dispatch
Sep 11, 2020 Sprenkle - CSCI209 1
1
Review
- We would like to return a private variable from a
public method
Ø Why could that be a problem? Ø How should we implement that method?
- How does Java handle memory management?
Ø What are the benefits and limitations of that approach?
- How does Java pass parameters?
Ø What are the consequences of that choice? (How does that affect how we call methods?)
Sep 11, 2020 Sprenkle - CSCI209 2