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