AP Computer Science Aeasymcq1 pt

Which is a compile error?

A.Calling a private method from another class
B.Calling a public method from another class
C.Calling a static method via the class
D.Calling an overloaded method

Explanation

Core Concept

private blocks external calls.

Correct Answer

ACalling a private method from another class

More Unit 5: Writing Classes practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 5: Writing Classes Questions →