Computer Science, asked by Saicha5977, 1 year ago

You want subclasses in any package to have access to members of a super class. the most restrictive access specifier that accomplishes this objective is

Answers

Answered by Anonymous
0
subclasses in any package to have access to members of a super class. the most restrictive access specifier that accomplishes this objective is protected



___________________________


1. Methods and variables are collectively known as members. Method and variable members are given access control in exactly the same way.



2. default access is very similar to protected default access makes a member accessible only to classes in the same package.
public means that all other classes regardless of the package that they belong to, can access the member.



3. volatile indicates that a thread must reconcile its working copy of the field with the master copy every time it accesses the variable.
Answered by sachin362
0
subclass in any packing to have access to members of a super class the most restaurants access
Similar questions