Computer Science, asked by army124, 11 months ago

Which keyword in a class protects its accessibility outside the package?

Answers

Answered by Anonymous
4

Answer:

Protected data member and method are only accessible by the classes of the same package and the subclasses present in any package. You can also say that the protected access modifier is similar to default access modifier with one exception that it has visibility in sub classes. Classes cannot be declared protected

Similar questions