Q. Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct?
β
Correct Answer: (D)
This method is accessible from within the class itself and from within all classes defined in the same package as the class itself.