# Including inherited code in an override

**URL:** <https://forum.kirupa.com/t/including-inherited-code-in-an-override/293906>\
**Category:** flash\
**Created:** [August 5, 2009, 5:41pm UTC](https://forum.kirupa.com/t/including-inherited-code-in-an-override/293906 "2009-08-05T17:41:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![midimid](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@midimid](https://forum.kirupa.com/u/midimid)\
**Post date:** [August 5, 2009, 5:41pm UTC](https://forum.kirupa.com/t/including-inherited-code-in-an-override/293906/1 "2009-08-05T17:41:45Z")

</div>

Override seems to completely replace a function’s code.

Is there any way to “append” to the superclassed function instead of replacing it?

i.e. - so that both traces show in this example:

```auto

package {
     public class Top {
          public function doSomething() {
               trace('top');
          }
     }
}

package {
     public class Bottom extends Top {
          public override function doSomething() {
               trace('bottom');
          }
     }
}

```
