Skip to content

Polymorphism and Casting

In this chapter we will continue learning about polymorphism, using the IS-A relationship to cast object references.

Objectives

  • Be able to cast object references from one type to another.
  • Understand the evils of field hiding, and why you will never use it in code.

Topics


Up -- Next