10 Object-Oriented Programming: Polymorphism and Interfaces

Objectives

In this chapter you’ll:

  • Learn the concept of polymorphism and how it enables “programming in the general.”

  • Use overridden methods to effect polymorphism.

  • Distinguish between abstract and concrete classes.

  • Declare abstract methods to create abstract classes.

  • Learn how polymorphism makes systems extensible and maintainable.

  • Determine an object’s type at execution time.

  • Declare and implement interfaces, and become familiar with the Java SE 8 interface enhancements.

Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.