What Is an Abstract Class?

You cannot instantiate an abstract class. That is, you cannot make an object of it. You can't write new SecondAbstractClass(). Ever. This is sensible, as it is the way the world works. The world has things in it, like balls and books and rocks. The world also has abstract concepts that help us organize actual things, such as rocks and people, and to organize other concepts. The economy is a good example. There is no such thing as “the economy.” Anywhere. It doesn't exist. We talk about it enough. “Blah blah blah…how's the economy…. Ah it's horrible…. Ah well what're you gunna do….” Because “the economy” is a useful placeholder for a collection of other things—some of which are physical objects, and some of which are ...

Get Java Garage 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.