, /.
: "a", "A". , ( B), JVM . , " 1" a.test , "point1" B-.
, ( ) . ( a.x), JVM . A. , : ((B)a).x
Please note: the difference between the actual and the declared object is based on the type after the "new" operator (for example new B()), and in the declaration of the object
source
share