Hi ,
From the link below , i understand that protected variables cannot be inherited if its from different package. Is my understanding right ?
Reference link
http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.6.7, cudnt exactly get what this means. explanations please ?
"A compile-time error occurs in the method delta here: it cannot access the protected members x and y of its parameter p, because while Point3d (the class in which the references to fields x and y occur) is a subclass of Point (the class in which x and y are declared), it is not involved in the implementation of a Point (the type of the parameter p). The method delta3d can access the protected members of its parameter q, because the class Point3d is a subclass of Point and is involved in the implementation of a Point3d"
http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.6.7 [ December 19, 2008: Message edited by: Juva Yuva ]