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

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -