# Effect of Subclassing on swf size

**URL:** <https://forum.kirupa.com/t/effect-of-subclassing-on-swf-size/246240>\
**Category:** flash\
**Created:** [December 8, 2007, 7:11pm UTC](https://forum.kirupa.com/t/effect-of-subclassing-on-swf-size/246240 "2007-12-08T19:11:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arkum](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/arkum/32/1951_2.png) [@arkum](https://forum.kirupa.com/u/arkum)\
**Post date:** [December 8, 2007, 7:11pm UTC](https://forum.kirupa.com/t/effect-of-subclassing-on-swf-size/246240/1 "2007-12-08T19:11:35Z")

</div>

Howdy,

Can anyone explain the following…

I have a class that is huge: ‘BaseClass’. For arguments sake lets say it is 5k.

In my Swf I use 10 classes that all subclass BaseClass, each is only 1k.

When I compile the swf, do each of these subclasses gain the weight of BaseClass, or do they share it?  
ie. do all 10 subclasses become 6k each (making a total of 60k), or do they share the BaseClass (10 X 1k + 5k ) = 15k?

(I know my example is unrealistic, but hopefully you get my point).

Thanks
