Question #69800

Why do we use protected keyword in a classes?

Expert's answer

The protected keyword is a member access modifier. A protected member is accessible within its class and by derived class instances.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS