Home / MCQ Bank / Computer
Computer Declaration And Access Control

Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • This method is accessible from within the class itself and from within all classes defined in the same package as the class itself.

Related Computer Questions

What is the primary function of the Hive UDAF (User Defined Aggregation Function)? In Apache NiFi, what is the function of the "ControlRate" processor? Which of the following media feature describes the number of entries in the color lookup table of the output device For some relations, changing the data can have undesirable consequences called: What is the output of the given code? i = 0 while i < 5 puts i i=(i+1)**2 end