protected keyword to a member in a class will restrict its visibility as follows:protected → Accessible in:
same package (all classes inside it) ✅
subclasses even in other packages ✅
So the correct answer is:
(c) visible in all classes in the same package and subclasses in other packages