Home:ALL Converter>if there are 3 classes A,B,C a and b are in same package c is in different package, to access fields of A why C must be child of A but not b?

if there are 3 classes A,B,C a and b are in same package c is in different package, to access fields of A why C must be child of A but not b?

Ask Time:2014-05-31T14:10:52         Author:vishnubvrit

Json Formatter

There are class A , class B, Class C.

if class A and B are in same package but not C; to Access fields of Class A ; C must be the Child of A.this rule is not for Class B it may or may not be the child of A to access the fields .WHY?

Author:vishnubvrit,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/23966998/if-there-are-3-classes-a-b-c-a-and-b-are-in-same-package-c-is-in-different-packa
yy