Advertisements
Advertisements
Question
What is meant by protected visibility?
One Line Answer
Solution
A class member declared to be protected acts as a private member of the class (i.e. cannot be used outside the class premises) but can be applied to another class during inheritance.
shaalaa.com
Is there an error in this question or solution?