|
protected variables and methods can only accessed as Hieritage other than reference
if you create an object of parent class, you have a reference access to parent class object, then you can not access the protected .
if you override or overload methods or hide variables or call parent's in the child , it will take heritage from the parent. then you can access the protected. |
|