# Multiple interfaces with identically named functions

**URL:** <https://forum.kirupa.com/t/multiple-interfaces-with-identically-named-functions/305226>\
**Category:** flash\
**Created:** [February 21, 2010, 9:56pm UTC](https://forum.kirupa.com/t/multiple-interfaces-with-identically-named-functions/305226 "2010-02-21T21:56:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [February 21, 2010, 9:56pm UTC](https://forum.kirupa.com/t/multiple-interfaces-with-identically-named-functions/305226/1 "2010-02-21T21:56:22Z")

</div>

Let’s say I have three Interfaces with a structure as such:

> **public interface IRegular**

- public function toFull();
- public function toSlim();

**public interface IFull**

- public function toRegular();
- public function toSlim();

**public interface ISlim**

- public function toRegular();
- public function toFull();

If I recall from a few tests a while back, if I have a class that extends one of them at a time, I have no errors. However, if I use two or more of them, one of the functions will “collide” and cause an error message.

If I recall correctly and an error is thrown\*\*, what is the exact error message that Flash gives? \*\*

\*\*Why does Flash prevent this? \*\*Should Flash not be satisfied that it has all the functions it needs?

**Is there any way to tell interfaces to “work together”** , consider them almost to be the same, and not worry about conflicting names of functions?

Wohoo! While writing this, I just came up with the perfect workaround for my purposes, so don’t worry about workarounds. 😃

Sorry, I’m still without a compiler, so I can’t test for the error message myself, so any help is REALLY appreciated.
