Skip to Content
0
Oct 12, 2017 at 10:34 AM

When child class inherits from parents class should Protected attributes not be available to child?

83 Views

I have a protected attribute in my parent class. My child class inherits from parent class but I get error message "Access to protected attribute is not allowed".

Please advise. Thank you kindly in advance.

Attachments

protected.png (29.1 kB)