Swipe to navigate through the chapters of this book
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.
Please log in to get access to this content
To get access to this content you need the following product:
- Discovering Inheritance, Polymorphism, and Interfaces
- Sequence number
- Chapter number
- Chapter 4