Since class A inherits from class B, only A can access B's methods and properties. Inheritance is a one-way street.
A
B