AP Computer Science Aeasymcq1 pt

A subclass inherits which members from its superclass?

A.public and protected methods and variables
B.private variables only
C.private methods only
D.nothing

Explanation

Core Concept

Public members are inherited.

Correct Answer

Apublic and protected methods and variables

More Unit 9: Inheritance practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 9: Inheritance Questions →