# What happens if you override internal method in different package?

**URL:** <https://forum.kirupa.com/t/what-happens-if-you-override-internal-method-in-different-package/295416>\
**Category:** flash\
**Created:** [August 29, 2009, 8:19pm UTC](https://forum.kirupa.com/t/what-happens-if-you-override-internal-method-in-different-package/295416 "2009-08-29T20:19:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wvxvw](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@wvxvw](https://forum.kirupa.com/u/wvxvw)\
**Post date:** [August 29, 2009, 8:19pm UTC](https://forum.kirupa.com/t/what-happens-if-you-override-internal-method-in-different-package/295416/1 "2009-08-29T20:19:51Z")

</div>

Well, basically, you know the question already 🙂  
What bugs me is that I cannot get an answer to this because compiler doesn’t like overriding internal functions in different packages, but, I would like to know what you think it should do, if it would have compiled?

I.e. imagine:  
I have foo.bar:A class and foo.abc:B class.  
Then foo.abc:B extends foo.bar:A.  
foo.bar:A defines internal function f().  
foo.abc:B overrides internal function f().

Now, the question:  
Can foo.abc.C call foo.abc:B#f()?
