If B derives directly from A, then Object isn't the immediate base class of B. All classes derives from Object one way or another, but there may be any number of base classes in between in the inheritance hierarchy. It's
B
^
A
^
Object
not
B
^ ^
A Object
^
Object