# Interface doesn't work

**URL:** <https://forum.kirupa.com/t/interface-doesnt-work/288807>\
**Category:** flash\
**Created:** [May 21, 2009, 8:04am UTC](https://forum.kirupa.com/t/interface-doesnt-work/288807 "2009-05-21T08:04:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fristi](https://avatars.discourse-cdn.com/v4/letter/f/e9a140/32.png) [@Fristi](https://forum.kirupa.com/u/Fristi)\
**Post date:** [May 21, 2009, 8:04am UTC](https://forum.kirupa.com/t/interface-doesnt-work/288807/1 "2009-05-21T08:04:47Z")

</div>

Hello,

I am creating a flash game. In this flash game the user has to estimate the weight of several products. I’ve created an interface for all ProductStacks to implement so i can take care of some stuff through calling the interface

```auto

package objects 
{ /**
     * ...
     * @author Mark
     */
    public interface IProductStack
    {
        function productScale():void;
        function get amount():Number;
        function get weight():Number;
    }
    
}

```

And this is a class implementing the methods:

```auto

package objects.stacks 
{
    import miracle.utils.NumberUtils;
    import objects.IProductStack;
    import objects.ProductStack;
    import flash.display.MovieClip;
    
    /**
     * ...
     * @author Mark
     */
    public class Bananas extends ProductStack implements IProductStack
    {
        public function get weight():Number
        {
            _weight = (!_weight) ? NumberUtils.ClamRandom(200, 300) : _weight;
            
            return _weight;
        }
        
        /* INTERFACE objects.IProductStack */
        
        public function productScale():void
        {
            
        }
        
    }
    
}

```

The get method ‘amount’ is implemented in the base class ProductStack. I used to have only ‘amount’ and ‘weight’ methods in my interface before, but when i added scaleProduct i recieved this error for all products (while i implemented scaleProduct on all Products):

```auto

method not implemented objects::IProductStack/objects:IProductStack::productScale()
   over-binding 0 in objects.stacks::Cucumbers
VerifyError: Error #1053: Illegal override of Cucumbers in objects.stacks.Cucumbers.
    at global$init()

```
