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

Popular posts from this blog

node.js - StackOverflow API not returning JSON -

ios - Apple Push Notifications + TestFlight + Enterprise wildcard provisioning profile -

android - Drag and drop in ScrollView -