Advertisement

Understanding Inheritance and Polymorphism

Abstract

The previous chapter examined the first pillar of OOP: encapsulation. At that time, you learned how to build a single well-defined class type with constructors and various members (fields, properties, constants, and read-only fields). This chapter will focus on the remaining two pillars of OOP: inheritance and polymorphism.

Keywords

Base Class Stock Option Class Hierarchy Hash Code Nest Type 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Andrew Troelsen, Vidya Vrat Agarwal 2010

Personalised recommendations