"Nothing is a subclass of every other class", how to understand it?

Viewed 492

These days, I am reading the book "programming in scala". There is one sentence in the book on Page 246, Chapter11, first paragraph:

For example, just as Any is a superclass of every other class, Nothing is a subclass of every other class.

I understand the first part because every class inherits Any in a direct or indirect way. But I can't understand the latter part of the sentence.

This is class Nothing definition:

abstract final class Nothing extends Any
1 Answers
Related