Skip to main content

Discovering Inheritance, Polymorphism, and Interfaces

  • Chapter
  • First Online:
Learn Java for Android Development
  • 4995 Accesses

Abstract

An object-based language is a language that encapsulates state and behaviors in objects. Java’s support for encapsulation (discussed in Chapter 3) qualifies it as an object-based language. However, Java is also an object-oriented language because it supports inheritance and polymorphism (as well as encapsulation). (Object-oriented languages are a subset of object-based languages.) In this chapter, I will introduce you to Java’s language features that support inheritance and polymorphism. Also, I will introduce you to interfaces, Java’s ultimate abstract type mechanism.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Jeff Friesen

About this chapter

Cite this chapter

Friesen, J. (2014). Discovering Inheritance, Polymorphism, and Interfaces. In: Learn Java for Android Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6455-2_4

Download citation

Publish with us

Policies and ethics