?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Class Hierarchy

APCSA-F1NGJN

Consider the following statements.

G inherits the capabilities of P
K is a parent of T
K is a subclass of G

What is the hierarchy of the classes, from parent to child? (For example if class A is a parent of subclass B, then the following would be true: A ← B.)

A

P ← G ← K ← T

B

P ← G ← T ← K

C

G ← P ← K ← T

D

T ← K ← G ← P

E

G ← P ← T ← K