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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-6455-2_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6454-5
Online ISBN: 978-1-4302-6455-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)