# Best Approach: to cleaning up duplicate functions across classes?

**URL:** <https://forum.kirupa.com/t/best-approach-to-cleaning-up-duplicate-functions-across-classes/268359>\
**Category:** flash\
**Created:** [August 13, 2008, 12:52am UTC](https://forum.kirupa.com/t/best-approach-to-cleaning-up-duplicate-functions-across-classes/268359 "2008-08-13T00:52:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidOrtiz](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@DavidOrtiz](https://forum.kirupa.com/u/DavidOrtiz)\
**Post date:** [August 13, 2008, 12:52am UTC](https://forum.kirupa.com/t/best-approach-to-cleaning-up-duplicate-functions-across-classes/268359/1 "2008-08-13T00:52:08Z")

</div>

Hey guys, whats the best way to clean up duplicate functions that are in several classes. I have the same function in like 4 classes and i dont know if i want to just remove it and put it in an external file, and just do an include line in all my classes.

what would be considered the best approach?
