JAVA memory use of extended class -
the situation: have parent class parent. several classes extends patent.
so question is: in memory created copies of parent there childs. or in memory there 1 copy used childs?
there 1 copy of each child method, , of each parent method etc. each child object has copy of each of class's non-static fields, , of each of parent's non-static fields, , of each of object's non-static fields.
Comments
Post a Comment