default.txt 551 B

123456789101112131415161718192021222324
  1. package org.example.dummy {
  2. import org.dummy.*;
  3. /*define package inline interface*/
  4. public interface IFooBarzable {
  5. public function foo(... pairs):Array;
  6. }
  7. public class FooBar implements IFooBarzable {
  8. static private var cnt:uint = 0;
  9. private var bar:String;
  10. //constructor
  11. public function TestBar(bar:String):void {
  12. bar = bar;
  13. ++cnt;
  14. }
  15. public function foo(... pairs):Array {
  16. pairs.push(bar);
  17. return pairs;
  18. }
  19. }
  20. }