Skip to main content
O'Reilly home
    • Sign In
    • Try Now
    • Teams
      • For business
      • For government
      • For higher ed
    • Individuals
    • Features
      • All features
      • Courses
      • Certifications
      • Interactive learning
      • Live events
      • Answers
      • Insights reporting
    • Blog
    • Content sponsorship

Java Illuminated, 4th Edition by Anderson

Get full access to Java Illuminated, 4th Edition and 60K+ other titles, with a free 10-day trial of O'Reilly.

There are also live events, courses curated by job role, and more.

Start your free trial

CHAPTER 10

Object-Oriented Programming, Part 3: Inheritance, Polymorphism, and Interfaces

CHAPTER CONTENTS

Introduction

10.1 Inheritance

10.2 Inheritance Design

10.2.1 Inherited Members of a Class

10.2.2 Subclass Constructors

10.2.3 Adding Specialization to the Subclass

10.2.4 Overriding Inherited Methods

10.3 The protected Access Modifier

10.4 Programming Activity 1: Using Inheritance

10.5 Abstract Classes and Methods

10.6 Polymorphism

10.7 Programming Activity 2: Using Polymorphism

10.8 Interfaces

10.9 Chapter Summary

10.10 Exercises, Problems, and Projects

10.10.1 Multiple Choice Exercises

10.10.2 Reading and Understanding Code

10.10.3 Fill In the Code

10.10.4 Identifying Errors in Code

10.10.5 Debugging Area—Using Messages from the Java Compiler ...

Get Java Illuminated, 4th 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.

Start your free trial

About O’Reilly

  • Teach/write/train
  • Careers
  • Press releases
  • Media coverage
  • Community partners
  • Affiliate program
  • Submit an RFP
  • Diversity
  • O’Reilly for marketers

Support

  • Contact us
  • Newsletters
  • Privacy policy
linkedin-logo youtube-logo

International

  • Australia & New Zealand
  • Hong Kong & Taiwan
  • India
  • Indonesia
  • Japan

Download the O’Reilly App

Take O’Reilly with you and learn anywhere, anytime on your phone and tablet.

Apple app store Google play store

Watch on your big screen

View all O’Reilly videos, Superstream events, and Meet the Expert sessions on your home TV.

Roku Payers and TVs Amazon appstore

Do not sell my personal information

O'Reilly home

© 2023, O’Reilly Media, Inc. All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.

Terms of service • Privacy policy • Editorial independence

Don’t leave empty-handed

Get Mark Richards’s Software Architecture Patterns ebook to better understand how to design components—and how they should interact.

It’s yours, free.

Get it now
Cover of Software Architecture Patterns

Check it out now on O’Reilly

Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.

Start your free trial Become a member now