What are direct and indirect subclasses?

java

Solution

You are correct. A known direct relationship implies that the class is the immediate ancestor. A known in-direct relationship implies that the class is known to be a sub-class, but it may in fact be many levels below the parent.

Problem

I was looking at Android development documentation, and I saw this: ``` public abstract class Buffer extends Object Known Direct Subclasses: ByteBuffer, CharBuffer, DoubleBuffer, FloatBuffer, IntBuffer, LongBuffer, ShortBuffer Known Indirect Subclasses: MappedByteBuffer ``` `Buffer` is a abstract class that cannot be instantiated. It inherits (extends) `Object`. But I am confused about the direct and indirect subclasses. My best guess would be: Direct extend directly from the superclass. Indirect extends from a superclass that directly extends the class in question. Many thanks for any suggestions,

Original source