we would like to make a member of a class visible in all subclasses regardless of what package they are in use which one of the following two keywords would achieve this private protected public and private protected
Answers
Answered by
0
Answer:
nonononono I not want to be a member of your classsssssssseeeeeeeeessssss
Answered by
1
Answer:
Private protected members can be accessed only by code in the same class or struct it can be access only by code in the class .
Explanation:
Private protected members can be accessed only by code in the same class or struct it can be access only by code in the class . the members can be accessed within the class and by classes derived from that class.
private protected - the property or method can only be accessed within the class
#SPJ3
Similar questions
Math,
5 months ago
Social Sciences,
5 months ago
Math,
5 months ago
Geography,
11 months ago
CBSE BOARD XII,
11 months ago