9.3. Abstract Classes and Abstract Methods

There are many occasions when the following situation presents itself: You would like to define a class that can be subclassed, but allowing direct instantiation of the class would not make sense. This generally happens when you've got some behavior that you'd like to make common, but you don't have enough data for the class to be instantiated itself. Enter abstract classes.

9.3.1. Abstract Classes and Methods

An abstract class cannot be instantiated. It can define methods that subclasses will use. But you can't make an object of it. Things that are abstract are the opposite of concrete things (if you believe in opposites). What is abstract is not yet made, but it exists on a conceptual level in order ...

Get Java™ for ColdFusion® Developers 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.