Examveda
Examveda

Which access modifier restricts a class member's visibility only to the same class and its subclasses?

A. private

B. public

C. protected

D. package-private

Answer: Option C


This Question Belongs to Java Program >> Declaration And Access Control

Join The Discussion

Related Questions on Declaration and Access Control