티스토리 뷰

다음 과 같이 클래스 extended::main()내에서 정의해야합니다 extended.

use two\hey;

class extended extends saysomething
{
    public static function main()
        {
                hey::say(); // will call two/hey::say method
                    }
                    }
                    

네임 스페이스는 여기서 도움이되지 않습니다.



출처
https://stackoverflow.com/questions/39915954
댓글
공지사항
Total
Today
Yesterday
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30