You want to restrict the access for a method to the containing class or to a class that is derived from the containing class. which access modifier should you use for this method?
Answers
Answered by
1
protected is the access modifier that we must use.
Similar questions
Social Sciences,
8 months ago
Math,
8 months ago
Physics,
1 year ago
Physics,
1 year ago
Math,
1 year ago