Hi everybody.
My doubt is that does ghi has-adef .Though it does not inherit def, it can still access def through setters and getters.Please clarify it for me.
Thanks!

The answer is No. Since, you have declared def d as private, sub classes of ghi (abc in this case) will not have "direct" access to def. However, you can use the public setter/getter methods to access def (as per encapsulation).