Quick Quiz!

To test your understanding of methods, let's take a short quiz.

1

Which visibility type fulfills this requirement: “It can only be called by the class it is defined in”?

A)

Protected

B)

Public

C)

Private

D)

Package

Question 1 of 40 attempted

Get hands-on with 1200+ tech skills courses.