But after checking i figured out the following:
1- Gamma object IS A Beta, so it can access the protected inherted member x.
2- Beta object IS NOT A Gamma, but Gamma has A Beta, in this case protected members are not visible to the composed object which is Beta object.
please elaborate on this and correct me if I'm wrong
love demgracy, knowledge demogracy, open source and Java - OCPJP 76%