PrivateCall.as 300 B

12345678910111213141516171819202122
  1. // input: []
  2. // output: 9
  3. package {
  4. public class PrivateCall {
  5. public static function main():int{
  6. var f:OtherClass = new OtherClass();
  7. return f.func();
  8. }
  9. }
  10. }
  11. class OtherClass {
  12. private function pf():int {
  13. return 9;
  14. }
  15. public function func():int {
  16. return this.pf();
  17. }
  18. }