ClassCall.as 271 B

123456789101112131415161718
  1. // input: []
  2. // output: 121
  3. package {
  4. public class ClassCall {
  5. public static function main():int{
  6. var f:OtherClass = new OtherClass();
  7. return f.func(100,20);
  8. }
  9. }
  10. }
  11. class OtherClass {
  12. public function func(x: int, y: int):int {
  13. return x+y+1;
  14. }
  15. }