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 Chapter 4 I introduce you to Java’s language features that support inheritance and polymorphism. Also, I 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
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2013 Jeff Friesen
About this chapter
Cite this chapter
Friesen, J. (2013). Discovering Inheritance, Polymorphism, and Interfaces. In: Learn Java for Android Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5723-3_4
Download citation
DOI: https://doi.org/10.1007/978-1-4302-5723-3_4
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-5722-6
Online ISBN: 978-1-4302-5723-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)